ICU-1532 add internal non-mutexed _registerInstance

X-SVN-Rev: 8844
This commit is contained in:
Alan Liu 2002-06-11 22:34:20 +00:00
parent 931ff2939d
commit 0c224a31ef
2 changed files with 9 additions and 0 deletions

View File

@ -1102,6 +1102,10 @@ void Transliterator::registerInstance(Transliterator* adoptedPrototype) {
initializeRegistry();
}
Mutex lock(&registryMutex);
_registerInstance(adoptedPrototype);
}
void Transliterator::_registerInstance(Transliterator* adoptedPrototype) {
registry->put(adoptedPrototype, TRUE);
}

View File

@ -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