diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2001-09-09 22:39:35 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2001-09-09 22:39:35 +0000 |
commit | ac9841a0702bb535aed64d21a6e1f3ed80c29482 (patch) | |
tree | 9f4ca0794c32ad400c75de434c3e9be7ddeb5f20 /winsup/cygwin/thread.h | |
parent | e3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07 (diff) | |
download | cygnal-ac9841a0702bb535aed64d21a6e1f3ed80c29482.tar.gz cygnal-ac9841a0702bb535aed64d21a6e1f3ed80c29482.tar.bz2 cygnal-ac9841a0702bb535aed64d21a6e1f3ed80c29482.zip |
Mon Sep 10 08:28:00 2001 Robert Collins <rbtcollins@hotmail.com>
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 6 |
1 files changed, 2 insertions, 4 deletions
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); |