Join()

Thread::Join() method

Joins managed thread. Performs unlimited waiting if required.

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

Thread::Join(int) method

Joins managed thread. Performs limited waiting.

bool System::Threading::Thread::Join(int millisecondsTimeout)

Arguments

ParameterTypeDescription
millisecondsTimeoutintWaiting timeout in milliseconds.

Return Value

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

Thread::Join(TimeSpan) method

Joins managed thread. Performs limited waiting.

bool System::Threading::Thread::Join(TimeSpan timeout)

Arguments

ParameterTypeDescription
timeoutTimeSpanA TimeSpan set to the amount of time to wait for the thread to terminate.

Return Value

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

See Also