X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..b25be06635768807f8f693286fa73bb2297bb06c:/icuSources/i18n/tridpars.cpp diff --git a/icuSources/i18n/tridpars.cpp b/icuSources/i18n/tridpars.cpp index 31bb034d..cf9fd3fb 100644 --- a/icuSources/i18n/tridpars.cpp +++ b/icuSources/i18n/tridpars.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2002-2008, International Business Machines Corporation +* Copyright (c) 2002-2009, International Business Machines Corporation * and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -654,7 +654,6 @@ void TransliteratorIDParser::registerSpecialInverse(const UnicodeString& target, bidirectional = FALSE; } - umtx_init(&LOCK); Mutex lock(&LOCK); UnicodeString *tempus = new UnicodeString(inverseTarget); // Used for null pointer check before usage. @@ -856,7 +855,6 @@ TransliteratorIDParser::specsToSpecialInverse(const Specs& specs, UErrorCode &st UnicodeString* inverseTarget; - umtx_init(&LOCK); umtx_lock(&LOCK); inverseTarget = (UnicodeString*) SPECIAL_INVERSES->get(specs.target); umtx_unlock(&LOCK); @@ -911,7 +909,6 @@ void TransliteratorIDParser::init(UErrorCode &status) { } special_inverses->setValueDeleter(uhash_deleteUnicodeString); - umtx_init(&LOCK); umtx_lock(&LOCK); if (SPECIAL_INVERSES == NULL) { SPECIAL_INVERSES = special_inverses; @@ -920,7 +917,7 @@ void TransliteratorIDParser::init(UErrorCode &status) { umtx_unlock(&LOCK); delete special_inverses; /*null instance*/ - ucln_i18n_registerCleanup(UCLN_I18N_TRANSLITERATOR, transliterator_cleanup); + ucln_i18n_registerCleanup(UCLN_I18N_TRANSLITERATOR, utrans_transliterator_cleanup); } /**