summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-09 02:38:13 -0700
committerMathias Agopian <mathias@google.com>2009-09-09 02:45:26 -0700
commitd42bd87f23974164d2539ea85c7b5e6329faf2c2 (patch)
tree9ab3713baa90ff2f06d9937d86900fbf43825c39 /include/utils
parenta280496bd2ce04d6beff4536f2115a9a4d7568e4 (diff)
downloadframeworks_base-d42bd87f23974164d2539ea85c7b5e6329faf2c2.zip
frameworks_base-d42bd87f23974164d2539ea85c7b5e6329faf2c2.tar.gz
frameworks_base-d42bd87f23974164d2539ea85c7b5e6329faf2c2.tar.bz2
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.
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/threads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/threads.h b/include/utils/threads.h
index e9b0788..0fc533f 100644
--- a/include/utils/threads.h
+++ b/include/utils/threads.h
@@ -408,6 +408,9 @@ private:
volatile bool mExitPending;
volatile bool mRunning;
sp<Thread> mHoldSelf;
+#if HAVE_ANDROID_OS
+ int mTid;
+#endif
};