mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-5352 Fix thread safety issue on Itanium, which is a weak memory model CPU.
X-SVN-Rev: 20182
This commit is contained in:
parent
08e738a04e
commit
72d9811956
1 changed files with 3 additions and 1 deletions
|
@ -172,8 +172,10 @@ typedef unsigned int uint32_t;
|
|||
/* 1 or 0 to enable or disable threads. If undefined, default is: enable threads. */
|
||||
#define ICU_USE_THREADS 1
|
||||
|
||||
/* Windows currently only runs on x86 CPUs which currently all have strong memory models. */
|
||||
/* On strong memory model CPUs (e.g. x86 CPUs), we use a safe & quick double check mutex lock. */
|
||||
#if defined(_M_IX86) || defined(_M_AMD64) || (defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)))
|
||||
#define UMTX_STRONG_MEMORY_MODEL 1
|
||||
#endif
|
||||
|
||||
#ifndef U_DEBUG
|
||||
#ifdef _DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue