ICU-5352 Fix thread safety issue on Itanium, which is a weak memory model CPU.

X-SVN-Rev: 20182
This commit is contained in:
George Rhoten 2006-08-29 21:02:25 +00:00
parent 08e738a04e
commit 72d9811956

View file

@ -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