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-05-07 02:23:43 +0400
committerRobert Collins <rbtcollins@hotmail.com>2001-05-07 02:23:43 +0400
commit68ebd3f6e2a438a58e0647d5a53509aa2aa8e6ea (patch)
tree13f5d9d8e1aeebd5d45879972e464d6005dc2037 /winsup/cygwin/thread.h
parent2bfb966544a9aff299cf173b62443853078100e5 (diff)
Sun May 6 17:05:00 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.h (pthread_cond): New element cond_access to allow atomic broadcasts. * thread.cc (pthread_cond::pthread_cond): Initialise cond_access. (pthread_cond::~pthread_cond): Destroy cond_access. (pthread_cond::Broadcast): Use cond_access. (pthread_cond::Signal): Use cond_access. (pthread_cond_wait): Use cond_access. (pthread_cond_timedwait): Use cond_access.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index a43d9feb5..98c4a0b53 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -290,6 +290,8 @@ public:
int shared;
LONG waiting;
pthread_mutex *mutex;
+ /* to allow atomic behaviour for cond_broadcast */
+ pthread_mutex_t cond_access;
HANDLE win32_obj_id;
int TimedWait (DWORD dwMilliseconds);
void BroadCast ();