commit | 4de4ebf6a25b5cf1819809ffcedea331d79823e0 | [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 | 39c110d7cae1d3690c7454be7b3379dd58ceab80 | |
parent | 454ea681398a23a45e2a9c4f3b12d7c30fec8e3c [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.