mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 11:05:03 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user