diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2001-05-06 22:23:43 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2001-05-06 22:23:43 +0000 |
commit | 68ebd3f6e2a438a58e0647d5a53509aa2aa8e6ea (patch) | |
tree | 13f5d9d8e1aeebd5d45879972e464d6005dc2037 /winsup/cygwin/thread.h | |
parent | 2bfb966544a9aff299cf173b62443853078100e5 (diff) | |
download | cygnal-68ebd3f6e2a438a58e0647d5a53509aa2aa8e6ea.tar.gz cygnal-68ebd3f6e2a438a58e0647d5a53509aa2aa8e6ea.tar.bz2 cygnal-68ebd3f6e2a438a58e0647d5a53509aa2aa8e6ea.zip |
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.h | 2 |
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 (); |