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

◆ wait()

virtual bool xtd::threading::wait_handle::wait ( int32  milliseconds_timeout)
protectedpure virtual

wait ownership of the specified mutex object.

Parameters
handleA valid handle to an open object.
milliseconds_timeoutThe number of milliseconds to wait, or -1 to wait indefinitely.
Returns
true if the current instance receives a signal; otherwise, false.
Remarks
If milliseconds_timeout is zero, the method does not block. It tests the state of the wait handle and returns immediately.
Override this function for all derived object

Implemented in xtd::threading::event_wait_handle, xtd::threading::mutex, and xtd::threading::semaphore.