* cygthread.h (cygthread::release): Just declare here.
* cygthread.cc (cygthread::release): Define here. Use InterlockedExchange to set inuse or suffer potential races. (cygthread::terminate): Use release().
This commit is contained in:
@@ -28,7 +28,7 @@ class cygthread
|
||||
static DWORD WINAPI simplestub (VOID *);
|
||||
static DWORD main_thread_id;
|
||||
static const char * name (DWORD = 0);
|
||||
void release () { __name = NULL; inuse = false; }
|
||||
void release ();
|
||||
cygthread (LPTHREAD_START_ROUTINE, LPVOID, const char *);
|
||||
cygthread () {};
|
||||
static void init ();
|
||||
|
Reference in New Issue
Block a user