ICU-1008 Don't do static init when threads are disabled.
X-SVN-Rev: 5630
This commit is contained in:
parent
8f53df7e76
commit
5064a00b19
@ -35,16 +35,6 @@
|
||||
/* Check our settings... */
|
||||
#include "unicode/utypes.h"
|
||||
|
||||
/* APP_NO_THREADS is an old symbol. We'll honour it if present. */
|
||||
#ifdef APP_NO_THREADS
|
||||
# define ICU_USE_THREADS 0
|
||||
#endif
|
||||
|
||||
/* Default: use threads. */
|
||||
#ifndef ICU_USE_THREADS
|
||||
# define ICU_USE_THREADS 1
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(POSIX) && (ICU_USE_THREADS==1)
|
||||
/* Usage: uncomment the following, and breakpoint WeAreDeadlocked to
|
||||
|
@ -24,6 +24,16 @@
|
||||
typedef void * Mutex;
|
||||
#endif
|
||||
|
||||
/* APP_NO_THREADS is an old symbol. We'll honour it if present. */
|
||||
#ifdef APP_NO_THREADS
|
||||
# define ICU_USE_THREADS 0
|
||||
#endif
|
||||
|
||||
/* Default: use threads. */
|
||||
#ifndef ICU_USE_THREADS
|
||||
# define ICU_USE_THREADS 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Code within this library which accesses protected data should
|
||||
* instantiate a Mutex object while doing so. Notice that there is
|
||||
|
Loading…
Reference in New Issue
Block a user