Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
WaitHandle Class
WaitAll Method
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
WaitHandle..::.WaitAll Method

Updated: July 2008

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

  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

Date

History

Reason

July 2008

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

SP1 feature change.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Alternative using the threadpool      Kristof Verbiest   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker