3 #ifndef __CDS_OS_WIN_THREAD_H
4 #define __CDS_OS_WIN_THREAD_H
8 namespace cds { namespace OS {
9 /// Windows-specific functions
12 /// Tests whether the thread is alive
13 static inline bool isThreadAlive( std::thread::id id )
15 HANDLE h = ::OpenThread( SYNCHRONIZE, FALSE, id );
22 /// Default backoff::yield implementation
23 static inline void backoff()
25 std::this_thread::yield();
29 using Win32::isThreadAlive;
32 }} // namespace cds::OS
34 #endif // #ifndef __CDS_OS_WIN_THREAD_H