2001-12-26 Robert Collins <rbtcollins@hotmail.com>

* thread.cc (pthread_cond::Signal): Use a separate flag for signal detection
        and broadcast semantics.
        (__pthread_cond_dowait): Ditto.
        * thread.h (pthread_cond): New flag for testing when a waiter has woken.
This commit is contained in:
Robert Collins
2001-12-26 12:46:26 +00:00
parent 7a0252e203
commit cbce49804f
3 changed files with 28 additions and 4 deletions

View File

@@ -306,6 +306,7 @@ class pthread_cond:public verifyable_object
public:
int shared;
LONG waiting;
LONG ExitingWait;
pthread_mutex *mutex;
/* to allow atomic behaviour for cond_broadcast */
pthread_mutex_t cond_access;