Removed cds::OS::is_thread_alive() function. This function is based of pthread_kill...
[libcds.git] / cds / os / posix / thread.h
index 64e6f26ff740dc58e96d1d3891e249ca4b09379c..399c93752dc04cc05ad19c60447ffd0ec68537de 100644 (file)
@@ -46,15 +46,6 @@ namespace cds { namespace OS {
         {
             return pthread_self();
         }
-
-        /// Checks if thread \p id is alive
-        static inline bool is_thread_alive( ThreadId id )
-        {
-            // if sig is zero, error checking is performed but no signal is actually sent.
-            // ESRCH - No thread could be found corresponding to that specified by the given thread ID
-            // Unresolved problem: Linux may crash on dead thread_id. Workaround unknown (except signal handler...)
-            return pthread_kill( id, 0 ) != ESRCH;
-        }
     }    // namespace posix
 
     //@cond