ICU-1532 add internal non-mutexed _registerInstance
X-SVN-Rev: 8844
This commit is contained in:
parent
931ff2939d
commit
0c224a31ef
@ -1102,6 +1102,10 @@ void Transliterator::registerInstance(Transliterator* adoptedPrototype) {
|
|||||||
initializeRegistry();
|
initializeRegistry();
|
||||||
}
|
}
|
||||||
Mutex lock(®istryMutex);
|
Mutex lock(®istryMutex);
|
||||||
|
_registerInstance(adoptedPrototype);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Transliterator::_registerInstance(Transliterator* adoptedPrototype) {
|
||||||
registry->put(adoptedPrototype, TRUE);
|
registry->put(adoptedPrototype, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -823,6 +823,11 @@ protected:
|
|||||||
Factory factory,
|
Factory factory,
|
||||||
Token context);
|
Token context);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
static void _registerInstance(Transliterator* adoptedObj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register two targets as being inverses of one another. For
|
* Register two targets as being inverses of one another. For
|
||||||
* example, calling registerSpecialInverse("NFC", "NFD", true) causes
|
* example, calling registerSpecialInverse("NFC", "NFD", true) causes
|
||||||
|
Loading…
Reference in New Issue
Block a user