X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/i18n/olsontz.h diff --git a/icuSources/i18n/olsontz.h b/icuSources/i18n/olsontz.h index a263ec05..ccc0cf9f 100644 --- a/icuSources/i18n/olsontz.h +++ b/icuSources/i18n/olsontz.h @@ -1,3 +1,5 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** * Copyright (c) 2003-2013, International Business Machines @@ -16,6 +18,7 @@ #if !UCONFIG_NO_FORMATTING #include "unicode/basictz.h" +#include "umutex.h" struct UResourceBundle; @@ -383,7 +386,10 @@ private: void clearTransitionRules(void); void deleteTransitionRules(void); void checkTransitionRules(UErrorCode& status) const; + + public: // Internal, for access from plain C code void initTransitionRules(UErrorCode& status); + private: InitialTimeZoneRule *initialRule; TimeZoneTransition *firstTZTransition; @@ -392,7 +398,7 @@ private: TimeArrayTimeZoneRule **historicRules; int16_t historicRuleCount; SimpleTimeZone *finalZoneWithStartYear; // hack - UBool transitionRulesInitialized; + UInitOnce transitionRulesInitOnce; }; inline int16_t