X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f3c0d7a59d99c2a94c6b8822291f0e42be3773c9..3d1f044b704633e2e541231cd17ae9ecf9ad5c7a:/icuSources/io/locbund.cpp diff --git a/icuSources/io/locbund.cpp b/icuSources/io/locbund.cpp index 8e880b17..4b6fe34c 100644 --- a/icuSources/io/locbund.cpp +++ b/icuSources/io/locbund.cpp @@ -45,10 +45,10 @@ static UBool U_CALLCONV locbund_cleanup(void) { } U_CDECL_END -static UMutex gLock = U_MUTEX_INITIALIZER; static inline UNumberFormat * copyInvariantFormatter(ULocaleBundle *result, UNumberFormatStyle style) { U_NAMESPACE_USE - Mutex lock(&gLock); + static UMutex *gLock = STATIC_NEW(UMutex); + Mutex lock(gLock); if (result->fNumberFormat[style-1] == NULL) { if (gPosixNumberFormat[style-1] == NULL) { UErrorCode status = U_ZERO_ERROR;