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

◆ join() [2/3]

bool xtd::threading::thread::join ( int32  milliseconds_timeout)

Blocks the calling thread until this thread object terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.

Parameters
milliseconds_timeoutThe number of milliseconds to wait for the thread to terminate.
Returns
true if the thread has terminated; false if the thread has not terminated after the amount of time specified by the xtd::milliseconds_timeout parameter has elapsed.
Exceptions
xtd::threading::thread_state_exceptionThe caller attempted to join a thread that is in the xtd::threading::thread_state::unstarted state.
xtd::argument_out_of_range_rxceptionmilliseconds_timeout is a negative number other than -1, which represents an infinite time-out.