System::Threading::Thread::Join 方法

Thread::Join() method

加入受管线程。如有需要,执行无限等待。

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

另见

Thread::Join(int) method

加入受管线程。执行有限等待。

bool System::Threading::Thread::Join(int millisecondsTimeout)
参数类型描述
millisecondsTimeoutint以毫秒为单位的等待超时。

ReturnValue

如果线程成功加入则为 true;如果超时则为 false。

另见

Thread::Join(TimeSpan) method

加入受管线程。执行有限等待。

bool System::Threading::Thread::Join(TimeSpan timeout)
参数类型描述
timeoutTimeSpan一个 TimeSpan,设置为等待线程终止的时间量。

ReturnValue

如果线程成功加入则为 true;如果超时则为 false。

另见