.NET Framework Class Library
WaitHandle..::.WaitAll Method

Updated: July 2008

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

Overload List

  NameDescription
Public methodStatic memberWaitAll(array<WaitHandle>[]()[])Waits for all the elements in the specified array to receive a signal.
Public methodStatic memberWaitAll(array<WaitHandle>[]()[], Int32)Waits for all the elements in the specified array to receive a signal, using an Int32 value to measure the time interval.
Public methodStatic memberWaitAll(array<WaitHandle>[]()[], TimeSpan)Waits for all the elements in the specified array to receive a signal, using a TimeSpan value to measure the time interval.
Public methodStatic memberWaitAll(array<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.
Public methodStatic memberWaitAll(array<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.
Top
See Also

Reference

Change History

Date

History

Reason

July 2008

Added new overloads: WaitAll(array<WaitHandle>[]()[], Int32) and WaitAll(array<WaitHandle>[]()[], TimeSpan).

SP1 feature change.

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