ICU-2853 numberformat deadlock during registration

X-SVN-Rev: 11762
This commit is contained in:
Doug Felt 2003-05-01 20:52:06 +00:00
parent 44b7710fb8
commit 8feb1843aa

View File

@ -877,8 +877,9 @@ const Hashtable*
ICUService::getVisibleIDMap(UErrorCode& status) const {
if (U_FAILURE(status)) return NULL;
// must only be called when lock is already held
ICUService* ncthis = (ICUService*)this; // cast away semantic const
Mutex mutex(&ncthis->lock);
if (idCache == NULL) {
ncthis->idCache = new Hashtable();
if (idCache == NULL) {