Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hotmail.com>2001-09-10 02:39:35 +0400
committerRobert Collins <rbtcollins@hotmail.com>2001-09-10 02:39:35 +0400
commitac9841a0702bb535aed64d21a6e1f3ed80c29482 (patch)
tree9f4ca0794c32ad400c75de434c3e9be7ddeb5f20 /winsup/cygwin/thread.h
parente3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07 (diff)
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.h6
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);