System::Threading::Thread::Join method

Thread::Join() method

Joins managed thread. Performs unlimited waiting if required.

void System::Threading::Thread::Join()

See Also

Thread::Join(int) method

Joins managed thread. Performs limited waiting.

bool System::Threading::Thread::Join(int millisecondsTimeout)
ParameterTypeDescription
millisecondsTimeoutintWaiting timeout in milliseconds.

ReturnValue

True if thread was successfully joined, false if timeout exceeded.

See Also

Thread::Join(TimeSpan) method

Joins managed thread. Performs limited waiting.

bool System::Threading::Thread::Join(TimeSpan timeout)
ParameterTypeDescription
timeoutTimeSpanA TimeSpan set to the amount of time to wait for the thread to terminate.

ReturnValue

True if thread was successfully joined, false if timeout exceeded.

See Also