diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2001-04-14 07:06:02 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2001-04-14 07:06:02 +0000 |
commit | e6b98fc8d6539f40aa34ce4964ae40305a5a52ca (patch) | |
tree | 6e50f9626b1caf2ff2c9110b68f0566a9da58b35 /winsup/cygwin/thread.h | |
parent | a25b8414aca039dd067de92a30eec17995deaff9 (diff) | |
download | cygnal-e6b98fc8d6539f40aa34ce4964ae40305a5a52ca.tar.gz cygnal-e6b98fc8d6539f40aa34ce4964ae40305a5a52ca.tar.bz2 cygnal-e6b98fc8d6539f40aa34ce4964ae40305a5a52ca.zip |
Sat Apr 14 17:04:00 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.h (MTinterface): Add threadcount.
* thread.cc (MTinterface::Init): Set threadcount to 1.
(__pthread_create): Increment threadcount.
(__pthread_exit): Decrement threadcount and call exit() from the last thread.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 2b6e7d7e7..6065f9d9c 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -333,6 +333,7 @@ public: /* we may get 0 for the Tls index.. grrr */ int indexallocated; int concurrency; + long int threadcount; // Used for main thread data, and sigproc thread struct __reent_t reents; @@ -346,7 +347,7 @@ public: void Init (int); - MTinterface ():reent_index (0), indexallocated (0) + MTinterface ():reent_index (0), indexallocated (0), threadcount (1) { pthread_prepare = NULL; pthread_child = NULL; |