std::thread::detach
From cppreference.com
| 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::system_error if joinable() == false or an error occurs.