Namespaces
Variants
Views
Actions

std::thread::join

From cppreference.com
void join();
(since C++11)

Blocks the current thread until the thread identified by *this finishes its execution.

Contents

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Exceptions

std::system_error if joinable() == false or an error occurs.

[edit] Example

[edit] See also

permits the thread to execute independently from the thread handle
(public member function) [edit]
checks whether the thread is joinable, i.e. potentially running in parallel context
(public member function) [edit]