- if (isDataOwned == FALSE) {
- // Test whether this request is operating on the same text string as some
- // some other transliteration that is still in progress and holding the
- // transliteration mutex. If so, do not lock the transliteration
- // mutex again.
- // TODO(andy): Need a better scheme for handling this.
- UBool needToLock;
- umtx_lock(NULL);
+
+ // Test whether this request is operating on the same text string as
+ // some other transliteration that is still in progress and holding the
+ // transliteration mutex. If so, do not lock the transliteration
+ // mutex again.
+ //
+ // gLockedText variable is protected by the global ICU mutex.
+ // Shared RBT data protected by transliteratorDataMutex.
+ //
+ // TODO(andy): Need a better scheme for handling this.
+ UBool needToLock;
+ {
+ Mutex m;