From f6709c07db65f630dd5c992647f513a51d1c5764 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 23 Jun 2002 07:36:21 +0000 Subject: 2002-06-12 Thomas Pfaff * 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. --- winsup/cygwin/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/thread.h') 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); -- cgit v1.1