Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ detaching threads

thread1.detach();
if (thread1.joinable())
{
  thread1.join();
}
else
{
  cout << "thread1 detached!" << endl;
}
 
PREVIOUS NEXT
Tagged: #detaching #threads
ADD COMMENT
Topic
Name
8+8 =