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();
|
||||
}
|
||||
Mutex lock(®istryMutex);
|
||||
_registerInstance(adoptedPrototype);
|
||||
}
|
||||
|
||||
void Transliterator::_registerInstance(Transliterator* adoptedPrototype) {
|
||||
registry->put(adoptedPrototype, TRUE);
|
||||
}
|
||||
|
||||
|
@ -823,6 +823,11 @@ protected:
|
||||
Factory factory,
|
||||
Token context);
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
static void _registerInstance(Transliterator* adoptedObj);
|
||||
|
||||
/**
|
||||
* Register two targets as being inverses of one another. For
|
||||
* example, calling registerSpecialInverse("NFC", "NFD", true) causes
|
||||
|
Loading…
Reference in New Issue
Block a user