Share via


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

See Also

Reference

thread Class

<thread>

thread::get_id Method

thread::id Class