.NET Framework Class Library
WaitHandle.WaitAll Method

Waits for all the elements in the specified array to receive a signal.

Overload List

Name Description
WaitHandle.WaitAll (WaitHandle[]) Waits for all the elements in the specified array to receive a signal.
WaitHandle.WaitAll (WaitHandle[], Int32, Boolean) Waits for all the elements in the specified array to receive a signal, using an Int32 value to measure the time interval and specifying whether to exit the synchronization domain before the wait.
WaitHandle.WaitAll (WaitHandle[], TimeSpan, Boolean) Waits for all the elements in the specified array to receive a signal, using a TimeSpan value to measure the time interval, and specifying whether to exit the synchronization domain before the wait.
See Also

Tags :


Community Content

Kristof Verbiest
Alternative using the threadpool
Waiting for an object can also be achieved using the threadpool. In some situations this is better because it means you don't need a dedicated thread to wait for the object.
Read more about this here:
http://kristofverbiest.blogspot.com/2008/08/dont-use-dedicated-thread-to-wait-on.html
Tags :

Page view tracker