b6bca441cf6014e46c4a4c5296f766aab377abc3
[libcds.git] / cds / user_setup / threading.h
1 //$$CDS-header$$
2
3 #ifndef __CDS_USER_SETUP_THREADING_MODEL_H
4 #define __CDS_USER_SETUP_THREADING_MODEL_H
5
6 /**
7     CDS threading model
8
9     CDS_THREADING_AUTODETECT - auto-detect appropriate threading model (default)
10
11     CDS_THREADING_MSVC - use MS Visual C++ declspec( thread ) declaration to mantain thread-specific data
12
13     CDS_THREADING_WIN_TLS - use Windows TLS API to mantain thread-specific data
14
15     CDS_THREADING_GCC - use GCC __thread keyword to mantain thread-specific data
16
17     CDS_THREADING_PTHREAD - use cds::Threading::Manager implementation based on pthread thread-specific
18     data functions pthread_getspecific/pthread_setspecific
19
20     CDS_THREADING_USER_DEFINED - use user-defined threading model
21 */
22 #define CDS_THREADING_AUTODETECT
23
24 #endif    // #ifndef __CDS_USER_SETUP_THREADING_MODEL_H