]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/rbtz.cpp
ICU-57166.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / rbtz.cpp
index 6abc6d1e6516e9af0cf21422787e25dd7e2c0fde..5f3addce313101a20e5f298a42b5489203cbd2e3 100644 (file)
@@ -151,16 +151,12 @@ RuleBasedTimeZone::completeConst(UErrorCode& status) const {
     if (U_FAILURE(status)) {
         return;
     }
-    UBool updated;
-    UMTX_CHECK(&gLock, fUpToDate, updated);
-    if (!updated) {
-        umtx_lock(&gLock);
-        if (!fUpToDate) {
-            RuleBasedTimeZone *ncThis = const_cast<RuleBasedTimeZone*>(this);
-            ncThis->complete(status);
-        }
-        umtx_unlock(&gLock);
+    umtx_lock(&gLock);
+    if (!fUpToDate) {
+        RuleBasedTimeZone *ncThis = const_cast<RuleBasedTimeZone*>(this);
+        ncThis->complete(status);
     }
+    umtx_unlock(&gLock);
 }
 
 void