mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-151 Make non-global mutex autoinitialize
X-SVN-Rev: 207
This commit is contained in:
parent
f6982fa107
commit
2ffefa66eb
1 changed files with 5 additions and 4 deletions
|
@ -18,6 +18,7 @@
|
|||
* 04/02/97 aliu Creation.
|
||||
* 04/07/99 srl updated
|
||||
* 05/13/99 stephen Changed to umutex (from cmutex).
|
||||
* 11/22/99 aliu Make non-global mutex autoinitialize [j151]
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
|
@ -70,11 +71,11 @@ void umtx_lock( UMTX *mutex )
|
|||
if( mutex == NULL )
|
||||
{
|
||||
mutex = &gGlobalMutex;
|
||||
}
|
||||
|
||||
if(*mutex == NULL)
|
||||
{
|
||||
umtx_init(NULL);
|
||||
}
|
||||
if(*mutex == NULL)
|
||||
{
|
||||
umtx_init(NULL);
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
|
Loading…
Add table
Reference in a new issue