Namespaces
Variants
Views
Actions

std::thread::joinable

From cppreference.com
bool joinable();
(since C++11)

Checks if the thread object identifies an active thread of execution. Specifically, returns true if get_id() != id()

Contents

[edit] Parameters

(none)

[edit] Return value

true if the thread object identifies an active thread of execution, false otherwise

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] Example

[edit] See also

returns the id of the thread
(public member function) [edit]
waits for a thread to finish its execution
(public member function) [edit]
permits the thread to execute independently from the thread handle
(public member function) [edit]