thread::joinable方法

指定关联的线程是否 joinable。

bool joinable() const _NOEXCEPT;

返回值

true,如果关联的线程 joinable;否则,false。

备注

线程对象 joinable,如果 get_id() != id()。

要求

**标头:**线程

**命名空间:**std

请参见

参考

thread Class

<thread>

thread::get_id方法

thread::id选件类