* 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:
Christopher Faylor
2003-04-10 05:27:34 +00:00
parent 57efd527df
commit e5d6d53590
4 changed files with 58 additions and 55 deletions

View File

@@ -8,7 +8,7 @@ details. */
class cygthread
{
LONG avail; /* 1: available, 0: ininitialized, -1: not available */
LONG inuse;
DWORD id;
HANDLE h;
HANDLE ev;