added POCO_LOCAL_STATIC_INIT_IS_THREADSAFE macro to check whether the compiler initializes static locals in a threadsafe way

This commit is contained in:
Guenter Obiltschnig
2012-11-13 11:17:58 +01:00
parent 97e9b9f5d9
commit 4bf477946e

View File

@@ -216,4 +216,14 @@
#endif
//
// Thread-safety of local static initialization
//
#if __cplusplus >= 201103L || __GNUC__ >= 4 || defined(__clang__)
#ifndef POCO_LOCAL_STATIC_INIT_IS_THREADSAFE
#define POCO_LOCAL_STATIC_INIT_IS_THREADSAFE 1
#endif
#endif
#endif // Foundation_Platform_INCLUDED