Removed cds::OS::is_thread_alive() function. This function is based of pthread_kill...
[libcds.git] / cds / os / win / thread.h
index 93f2440dc82cbf1949242bc716391ff577322f61..023f330696db9e69d0ceea8576314d465b5c4e63 100644 (file)
@@ -48,16 +48,6 @@ namespace cds { namespace OS {
         {
             return ::GetCurrentThreadId();
         }
-
-        /// Tests whether the thread is alive
-        static inline bool is_thread_alive( ThreadId id )
-        {
-            HANDLE h = ::OpenThread( SYNCHRONIZE, FALSE, id );
-            if ( h == nullptr )
-                return false;
-            ::CloseHandle( h );
-            return true;
-        }
     }    // namespace Win32
 
     //@cond
@@ -66,7 +56,6 @@ namespace cds { namespace OS {
 #ifndef CDS_CXX11_INLINE_NAMESPACE_SUPPORT
     using Win32::ThreadId;
     using Win32::get_current_thread_id;
-    using Win32::is_thread_alive;
 #endif
     //@endcond