/**
* The mutex controlling access to SPECIAL_INVERSES
*/
-static UMutex *LOCK() {
- static UMutex *m = STATIC_NEW(UMutex);
- return m;
-}
+static UMutex LOCK;
TransliteratorIDParser::Specs::Specs(const UnicodeString& s, const UnicodeString& t,
const UnicodeString& v, UBool sawS,
pos = ppos.getIndex();
if (withParens == 1 && !ICU_Utility::parseChar(id, pos, CLOSE_REV)) {
+ delete filter;
pos = start;
return NULL;
}
bidirectional = FALSE;
}
- Mutex lock(LOCK());
+ Mutex lock(&LOCK);
UnicodeString *tempus = new UnicodeString(inverseTarget); // Used for null pointer check before usage.
if (tempus == NULL) {
UnicodeString* inverseTarget;
- umtx_lock(LOCK());
+ umtx_lock(&LOCK);
inverseTarget = (UnicodeString*) SPECIAL_INVERSES->get(specs.target);
- umtx_unlock(LOCK());
+ umtx_unlock(&LOCK);
if (inverseTarget != NULL) {
// If the original ID contained "Any-" then make the