std::thread::detach

std::thread::detach

void detach();
(since C++11)

Separates the thread of execution from the thread object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits.

After calling detach *this no longer owns any thread.

Parameters

(none).

Return value

(none).

Postconditions

joinable is false.

Exceptions

std::syste