ICU-1008 Fix for when threads are not wanted.
X-SVN-Rev: 6458
This commit is contained in:
parent
dab8330821
commit
2d5d7cf72f
@ -68,6 +68,8 @@
|
||||
#include "umutex.h"
|
||||
#include "cmemory.h"
|
||||
|
||||
#if (ICU_USE_THREADS == 1)
|
||||
|
||||
/* the global mutex. Use it proudly and wash it often. */
|
||||
static UMTX gGlobalMutex = NULL;
|
||||
|
||||
@ -78,6 +80,7 @@ static CRITICAL_SECTION gPlatformMutex;
|
||||
static pthread_mutex_t gPlatformMutex;
|
||||
|
||||
#endif
|
||||
#endif /* ICU_USE_THREADS==1 */
|
||||
|
||||
void umtx_lock(UMTX *mutex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user