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

◆ join() [3/3]

bool xtd::threading::thread::join ( const time_span 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
timeoutA xtd::time_span set to the amount of time 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_exceptiontimeout is a negative number other than -1 milliseconds, which represents
-or-
timeout is greater than xtd::int32_object::max_value.