ICU-2853 numberformat deadlock during registration
X-SVN-Rev: 11762
This commit is contained in:
parent
44b7710fb8
commit
8feb1843aa
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user