commit | d42bd87f23974164d2539ea85c7b5e6329faf2c2 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed Sep 09 02:38:13 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Sep 09 02:45:26 2009 -0700 |
tree | 9ab3713baa90ff2f06d9937d86900fbf43825c39 | |
parent | a280496bd2ce04d6beff4536f2115a9a4d7568e4 [diff] |
use broadcast() instead of signal() when signaling the condition-variable Thread::RequestExitAndWait() is waiting for we could have several thread waiting on the condition and they all need to wake-up. also added a debug "mTid" field in the class, which contains the tid of the thread (as opposed to pthread_t), this is useful when debugging under gdb for instance.