Monitor..::.Wait Method
This page is specific to:.NET Framework Version:
.NET Framework Class Library
Monitor..::.Wait Method

Releases the lock on an object and blocks the current thread until it reacquires the lock.

Overload List

  NameDescription
Public methodStatic memberWait(Object)Releases the lock on an object and blocks the current thread until it reacquires the lock.
Public methodStatic memberWait(Object, Int32)Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue.
Public methodStatic memberWait(Object, TimeSpan)Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue.
Public methodStatic memberWait(Object, Int32, Boolean)Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue. This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired afterward.
Public methodStatic memberWait(Object, TimeSpan, Boolean)Releases the lock on an object and blocks the current thread until it reacquires the lock. If the specified time-out interval elapses, the thread enters the ready queue. Optionally exits the synchronization domain for the synchronized context before the wait and reacquires the domain afterward.
Top
See Also

Reference

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View