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.
(none)
[edit] Return value(none)
[edit] Postconditionsjoinable is false.
[edit] Exceptionsstd::system_error if joinable() == false or an error occurs.
[edit] ExamplePossible output:
Starting thread caller. Starting concurrent thread. Exiting thread caller. Exiting concurrent thread.[edit] References
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4