|
log4cplus
2.1.0
|
Go to the documentation of this file.
23 #ifndef LOG4CPLUS_HELPERS_THREAD_CONFIG_HEADER_
24 #define LOG4CPLUS_HELPERS_THREAD_CONFIG_HEADER_
26 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
30 #if defined (LOG4CPLUS_USE_PTHREADS)
31 # if defined (__APPLE__)
32 # define LOG4CPLUS_USE_NAMED_POSIX_SEMAPHORE
35 #elif defined(LOG4CPLUS_USE_WIN32_THREADS)
36 # define LOG4CPLUS_USE_SRW_LOCK
38 # undef LOG4CPLUS_HAVE_TLS_SUPPORT
39 # undef LOG4CPLUS_THREAD_LOCAL_VAR
40 # if defined (_MSC_VER)
44 # define LOG4CPLUS_HAVE_TLS_SUPPORT 1
45 # define LOG4CPLUS_THREAD_LOCAL_VAR __declspec(thread)
48 #elif defined(LOG4CPLUS_SINGLE_THREADED)
49 # undef LOG4CPLUS_HAVE_TLS_SUPPORT
50 # undef LOG4CPLUS_THREAD_LOCAL_VAR
53 # error "You Must define a Threading model"