mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -04:00
detach pqistreamer threads to allow resource cleanup or re-use
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
28030f9b08
commit
32d1bd7b04
2 changed files with 7 additions and 4 deletions
|
@ -73,6 +73,9 @@ void pqithreadstreamer::run()
|
|||
std::cerr << "pqithreadstream::run()";
|
||||
std::cerr << std::endl;
|
||||
|
||||
// tell the OS to free the thread resources when this function exits
|
||||
// it is a replacement for pthread_join()
|
||||
pthread_detach(pthread_self());
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue