Move libcds 1.6.0 from SVN
[libcds.git] / cds / details / std / thread.h
1 //$$CDS-header$$
2
3 #ifndef __CDS_DETAILS_STD_THREAD_H
4 #define __CDS_DETAILS_STD_THREAD_H
5
6 //@cond
7
8 #include <cds/details/defs.h>
9
10 #ifdef CDS_CXX11_STDLIB_THREAD
11 #   include <thread>
12     namespace cds_std {
13         using std::thread;
14         namespace this_thread = std::this_thread;
15     }
16 #else
17 #   include <boost/thread/thread.hpp>
18     namespace cds_std {
19         using boost::thread;
20         namespace this_thread = boost::this_thread;
21     }
22 #endif
23
24 //@endcond
25
26 #endif // #ifndef __CDS_DETAILS_STD_THREAD_H