From e5d6d5359038c83580f8a239d7cf2b9c3a85559d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 10 Apr 2003 05:27:34 +0000 Subject: * 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). --- winsup/cygwin/cygthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/cygthread.h') diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h index 3226f2a02..7af3f3183 100644 --- a/winsup/cygwin/cygthread.h +++ b/winsup/cygwin/cygthread.h @@ -8,7 +8,7 @@ details. */ class cygthread { - LONG avail; /* 1: available, 0: ininitialized, -1: not available */ + LONG inuse; DWORD id; HANDLE h; HANDLE ev; -- cgit v1.2.3