OSDN Git Service

use broadcast() instead of signal() when signaling the condition-variable Thread...
authorMathias Agopian <mathias@google.com>
Wed, 9 Sep 2009 09:38:13 +0000 (02:38 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 9 Sep 2009 09:45:26 +0000 (02:45 -0700)
commit4de4ebf6a25b5cf1819809ffcedea331d79823e0
tree39c110d7cae1d3690c7454be7b3379dd58ceab80
parent454ea681398a23a45e2a9c4f3b12d7c30fec8e3c
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.
include/utils/threads.h
libs/utils/Threads.cpp