aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/thread.h
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hotmail.com>2002-06-23 07:36:21 +0000
committerRobert Collins <rbtcollins@hotmail.com>2002-06-23 07:36:21 +0000
commitf6709c07db65f630dd5c992647f513a51d1c5764 (patch)
tree7fb367d8f7493d1d128c098b35f190588d598b10 /winsup/cygwin/thread.h
parent0278e3a33faafdb796945dbb196a78d6ed312f37 (diff)
downloadnewlib-f6709c07db65f630dd5c992647f513a51d1c5764.zip
newlib-f6709c07db65f630dd5c992647f513a51d1c5764.tar.gz
newlib-f6709c07db65f630dd5c992647f513a51d1c5764.tar.bz2
2002-06-12 Thomas Pfaff <tpfaff@gmx.net>
* thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to cleanup_stack. * thread.cc (pthread::pthread): Ditto. (pthread::create): Fixed mutex verification. (pthread::push_cleanup_handler): Renamed cleanup_handlers to cleanup_stack. Mutex calls removed, used InterlockedExchangePointer instead. (pthread::pop_cleanup_handler): Renamed cleanup_handlers to cleanup_stack. (pthread::pop_all_cleanup_handlers): Ditto. (__pthread_once): Check state first and return if already done. (__pthread_join): DEADLOCK test reverted to __pthread_equal call. (__pthread_detach): Unlock mutex before deletion.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index ee4dfbb..f926a3a 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -295,7 +295,7 @@ public:
private:
DWORD thread_id;
- __pthread_cleanup_handler *cleanup_handlers;
+ __pthread_cleanup_handler *cleanup_stack;
pthread_mutex mutex;
friend void __pthread_exit (void *value_ptr);