OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e1ebc
)
Add mutex
author
Andy McFadden
<fadden@android.com>
Thu, 8 May 2014 21:56:50 +0000
(14:56 -0700)
committer
Andy McFadden
<fadden@android.com>
Thu, 8 May 2014 21:56:50 +0000
(14:56 -0700)
Change-Id: I81072031e74a5cca8384e4e8bce4babf2187d8bb
services/surfaceflinger/DispSync.cpp
patch
|
blob
|
history
diff --git
a/services/surfaceflinger/DispSync.cpp
b/services/surfaceflinger/DispSync.cpp
index
fd46822
..
2ee7570
100644
(file)
--- a/
services/surfaceflinger/DispSync.cpp
+++ b/
services/surfaceflinger/DispSync.cpp
@@
-509,6
+509,7
@@
void DispSync::resetErrorLocked() {
}
nsecs_t DispSync::computeNextRefresh(int periodOffset) const {
+ Mutex::Autolock lock(mMutex);
nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
return (((now - mPhase) / mPeriod) + periodOffset + 1) * mPeriod + mPhase;
}