Replace NULL with nullptr
[libcds.git] / cds / os / win / thread.h
index 85877573eb106a9ec42369ebfbee9cd1733bf09a..0098bd8af122afe3c071224a20ac64ad685cef5b 100644 (file)
@@ -22,17 +22,11 @@ namespace cds { namespace OS {
         static inline bool isThreadAlive( ThreadId id )
         {
             HANDLE h = ::OpenThread( SYNCHRONIZE, FALSE, id );
-            if ( h == NULL )
+            if ( h == nullptr )
                 return false;
             ::CloseHandle( h );
             return true;
         }
-
-        /// Default backoff::yield implementation
-        static inline void    backoff()
-        {
-            std::this_thread::yield();
-        }
     }    // namespace Win32
 
     using Win32::ThreadId;
@@ -40,7 +34,6 @@ namespace cds { namespace OS {
 
     using Win32::getCurrentThreadId;
     using Win32::isThreadAlive;
-    using Win32::backoff;
 
 }} // namespace cds::OS