xtd 0.2.0
Loading...
Searching...
No Matches

◆ wait_one() [1/3]

virtual bool xtd::threading::wait_handle::wait_one ( )
virtual

Blocks the current thread until the current xtd::threading::wait_handle receives a signal.

Returns
true if the current instance receives a signal. If the current instance is never signaled, xtd::threading::wait_handle.wait_one(int32, bool) never returns.
Exceptions
xtd::object_closed_exceptionthe handle is invalid
xtd::threading::abandoned_mutex_exceptionThe wait completed because a thread exited without releasing a mutex.
Examples
event_wait_handle.cpp, and monitor_lock.cpp.