summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-03-24 19:35:20 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-03-24 19:35:21 +0000
commit2f6fb3d1b779b877ee66d826c8ff57efde830ac6 (patch)
treeb2781b9d637598d444e0f61672a1dbfbdbf7ed96
parentf1bbbbfc2c53a83c8950bab92e08d70a8d67b84a (diff)
parentbf29ee2a49cfa6e87e535dcb1476ff1336f8bdf9 (diff)
Merge "Shave another 10us off of hwuitask"
-rw-r--r--libs/hwui/thread/Signal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/hwui/thread/Signal.h b/libs/hwui/thread/Signal.h
index dcf54498b9f5..d4cfeeb29c17 100644
--- a/libs/hwui/thread/Signal.h
+++ b/libs/hwui/thread/Signal.h
@@ -30,8 +30,10 @@ public:
~Signal() { }
void signal() {
- Mutex::Autolock l(mLock);
- mSignaled = true;
+ {
+ Mutex::Autolock l(mLock);
+ mSignaled = true;
+ }
mCondition.signal(mType);
}