* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
* cygthread.cc: Ditto. (cygthread::stub): Don't initialize already initialized events. (cygthread::freerange): Don't create thread here. (cygthread::cygthread): Create thread here. Die if thread not created. (cygthread::operator new): Simplify. Just grab a thread structure from the pool. Don't try to start the thread. (cygthread::terminate_thread): Don't close event handles. Just reuse them. Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
This commit is contained in:
@@ -8,7 +8,7 @@ details. */
|
||||
|
||||
class cygthread
|
||||
{
|
||||
LONG avail; /* 1: available, 0: ininitialized, -1: not available */
|
||||
LONG inuse;
|
||||
DWORD id;
|
||||
HANDLE h;
|
||||
HANDLE ev;
|
||||
|
Reference in New Issue
Block a user