4a9e048769
X-SVN-Rev: 9329
31 lines
655 B
C++
31 lines
655 B
C++
/*
|
|
**********************************************************************
|
|
* Copyright (C) 1997-2002, International Business Machines
|
|
* Corporation and others. All Rights Reserved.
|
|
**********************************************************************
|
|
*/
|
|
|
|
#include "unicode/utypes.h"
|
|
#include "mutex.h"
|
|
#include "umutex.h"
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
const char Mutex::fgClassID=0;
|
|
|
|
U_NAMESPACE_END
|
|
|
|
/* Initialize the global mutex only when we can use it. */
|
|
#if (ICU_USE_THREADS == 1)
|
|
|
|
static int GlobalMutexInitialize()
|
|
{
|
|
umtx_init( NULL );
|
|
return 0;
|
|
}
|
|
|
|
static int initializesGlobalMutex = GlobalMutexInitialize();
|
|
|
|
#endif /* ICU_USE_THREADS==1 */
|
|
|