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

◆ wait_one() [2/3]

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

Blocks the current thread until the current xtd::threading::wait_handle receives a signal, using 32-bit signed integer to measure the time interval.

Parameters
milliseconds_timeoutThe number of milliseconds to wait, or xtd::threading::timeout::infinite (-1) to wait indefinitely.
Returns
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.
xtd::argument_exceptionmilliseconds_timeout is a negative number other than -1, which represents an infinite time-out.