Changeset 35:f8a5b321d0c3 in xplcommon for src/xplcommon/win32/Thread.cc


Ignore:
Timestamp:
01/03/13 06:57:15 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for detached threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/win32/Thread.cc

    r3 r35  
    4040DWORD Thread::threadFn(LPVOID arg)
    4141{
    42     reinterpret_cast<Thread*>(arg)->run();
     42    Thread* thread = reinterpret_cast<Thread*>(arg);
     43
     44    thread->run();
     45
     46    if (thread->detached) delete thread;
     47
    4348    return 0;
    4449}
Note: See TracChangeset for help on using the changeset viewer.