thread::joinable Method
Specifies whether the associated thread is joinable.
bool joinable() const _NOEXCEPT;
Return Value
true if the associated thread is joinable; otherwise, false.
Remarks
A thread object is joinable if get_id() != id().
Requirements
Header: thread
Namespace: std