]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/umutex.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / common / umutex.h
index 6a4fcb8fff4aaddb53fae55ab2105c029e79f2c0..06033feb40bbd9f6867d09c7505692533acdeaac 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 1997-2004, International Business Machines
+*   Copyright (C) 1997-2005, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *
 # define ICU_USE_THREADS 1
 #endif
 
+/**
+ * By default assume that we are on a machine with a weak memory model,
+ * and the double check lock won't work reliably.
+ */
+#if !defined(UMTX_STRONG_MEMORY_MODEL)
+#define UMTX_STRONG_MEMORY_MODEL 0
+#endif
+
 /**
  * \def UMTX_CHECK
  * Encapsulates a safe check for an expression (usually a condition)