From ac9841a0702bb535aed64d21a6e1f3ed80c29482 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 9 Sep 2001 22:39:35 +0000 Subject: Mon Sep 10 08:28:00 2001 Robert Collins * thread.h (MT_Interface): Remove pshared mutex array. Add a threadsafe list for mutex tracking (for fixupafter fork). * thread.cc (MTInterface::Init): Remove pshared mutex array. (pthread_mutex::pthread_mutex): Remove pshared mutex functionality. Fail with EINVAL on attempts to use pshared functionality. (__pthread_mutex_getpshared): Remove. (__pthread_cond_timedwait): Remove pshared mutex functionality. (__pthread_cond_wait): Ditto. (__pthread_mutex_init): Ditto. (__pthread_mutex_getprioceiling): Ditto. (__pthread_mutex_lock): Ditto. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): Ditto. (__pthread_mutexattr_setpshared): Ditto. --- winsup/cygwin/thread.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index b871d34b0..d027830d4 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -356,10 +356,8 @@ public: callback *pthread_child; callback *pthread_parent; - /* this is an associative array for the _exclusive_ use of pshared mutex's - * normal mutex's don't go here to reduce overhead and prevent serialisation. - */ - class pthread_mutex * pshared_mutexs[256]; + // list of mutex's. USE THREADSAFE INSERTS AND DELETES. + class pthread_mutex * mutexs; void Init (int); -- cgit v1.2.3