Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-04 22:52:11 +0400
committerChristopher Faylor <me@cgf.cx>2003-04-04 22:52:11 +0400
commit9dbe3289ee6f6bb1e2bc92c420aa949d5ea3c3c2 (patch)
tree0fa44485c38e6122ab9295876049a347116dd2e4 /winsup/cygwin/cygthread.h
parent5557a0daced5ce6ddea6f1ea856f77ce222ffe35 (diff)
* cygthread.h (cygthread::avail): Make LONG for easier use with Interlocked*
functions. * cygthread.cc (cygthread::init): Eliminate unneeded muto. (cygthread::operator new): Don't lock. Instead change use of avail variable into tri-state: available (1), not available (-1), uninitialized (0). (cygthread::terminate_thread): Set avail to uninitialized. (cygthread::detach): Eliminate local 'avail'. Always set avail to 1 unless signalled. * cygthread.cc (cygthread::operator new): Be more defensive when messing with
Diffstat (limited to 'winsup/cygwin/cygthread.h')
-rw-r--r--winsup/cygwin/cygthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h
index b0c07af0a..3226f2a02 100644
--- a/winsup/cygwin/cygthread.h
+++ b/winsup/cygwin/cygthread.h
@@ -8,7 +8,7 @@ details. */
class cygthread
{
- DWORD avail;
+ LONG avail; /* 1: available, 0: ininitialized, -1: not available */
DWORD id;
HANDLE h;
HANDLE ev;