3 #ifndef CDSLIB_OS_THREAD_H
4 #define CDSLIB_OS_THREAD_H
7 #include <cds/details/defs.h>
9 #if CDS_OS_TYPE == CDS_OS_WIN32 || CDS_OS_TYPE == CDS_OS_WIN64 || CDS_OS_TYPE == CDS_OS_MINGW
10 # include <cds/os/win/thread.h>
12 # include <cds/os/posix/thread.h>
15 namespace cds { namespace OS {
17 /// Default backoff::yield implementation
18 static inline void backoff()
20 std::this_thread::yield();
22 }} // namespace cds::OS
24 #endif // #ifndef CDSLIB_OS_THREAD_H