summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-06-13 10:30:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-13 10:30:29 -0700
commit041120754aa59ddd28927fa6c5db0c90bb8f5e95 (patch)
tree6e2bc633ab17347da11c06ebaffaf1b33f81d6fe /include
parent622d5441975fa16636d3304d42d27659af14cb49 (diff)
parent9dbd7d818916dca77e53ababdaf05311d5c7bce2 (diff)
downloadframeworks_base-041120754aa59ddd28927fa6c5db0c90bb8f5e95.zip
frameworks_base-041120754aa59ddd28927fa6c5db0c90bb8f5e95.tar.gz
frameworks_base-041120754aa59ddd28927fa6c5db0c90bb8f5e95.tar.bz2
Merge "Remove redundant memory barrier"
Diffstat (limited to 'include')
-rw-r--r--include/utils/threads.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/utils/threads.h b/include/utils/threads.h
index 41e5766..0bd69cf 100644
--- a/include/utils/threads.h
+++ b/include/utils/threads.h
@@ -526,6 +526,7 @@ private:
Thread& operator=(const Thread&);
static int _threadLoop(void* user);
const bool mCanCallJava;
+ // always hold mLock when reading or writing
thread_id_t mThread;
mutable Mutex mLock;
Condition mThreadExitedCondition;