Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: source/common/umutex.cpp

Issue 1225213014: go back to ps #4 Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/umutex.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/umutex.cpp
diff --git a/source/common/umutex.cpp b/source/common/umutex.cpp
index 0c1fdc8073005b89bdc92dd9feb6513c27757ceb..581f2b945fc704a3216b5ce45c302fee1b40ab1b 100644
--- a/source/common/umutex.cpp
+++ b/source/common/umutex.cpp
@@ -349,8 +349,8 @@ umtx_atomic_dec(u_atomic_int32_t *p) {
U_COMMON_API int32_t U_EXPORT2
umtx_loadAcquire(u_atomic_int32_t &var) {
- int32_t val = var;
umtx_lock(&gIncDecMutex);
+ int32_t val = var;
umtx_unlock(&gIncDecMutex);
return val;
}
@@ -358,8 +358,8 @@ umtx_loadAcquire(u_atomic_int32_t &var) {
U_COMMON_API void U_EXPORT2
umtx_storeRelease(u_atomic_int32_t &var, int32_t val) {
umtx_lock(&gIncDecMutex);
- umtx_unlock(&gIncDecMutex);
var = val;
+ umtx_unlock(&gIncDecMutex);
}
U_NAMESPACE_END
« no previous file with comments | « source/common/umutex.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698