Renamed isThreadAlive to is_thread_alive
authorkhizmax <libcds.dev@gmail.com>
Sat, 29 Nov 2014 11:46:16 +0000 (14:46 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sat, 29 Nov 2014 11:46:16 +0000 (14:46 +0300)
cds/os/posix/thread.h
cds/os/win/thread.h
cds/urcu/details/base.h
src/hp_gc.cpp

index b2531847509f6a32bf1e5972b85fe5e0837e59a6..51f1ef2b0b26a4abfeb2b2a70e2a4ad3719379a4 100644 (file)
@@ -20,7 +20,7 @@ namespace cds { namespace OS {
         }
 
         /// Checks if thread \p id is alive
-        static inline bool isThreadAlive( ThreadId id )
+        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
index 15fd57f2a01cae365b1a4215e4d561f95538eaff..2650fd062512106ef8175f074f0f569dfe780391 100644 (file)
@@ -19,7 +19,7 @@ namespace cds { namespace OS {
         }
 
         /// Tests whether the thread is alive
-        static inline bool isThreadAlive( ThreadId id )
+        static inline bool is_thread_alive( ThreadId id )
         {
             HANDLE h = ::OpenThread( SYNCHRONIZE, FALSE, id );
             if ( h == nullptr )
@@ -35,7 +35,7 @@ namespace cds { namespace OS {
 #ifndef CDS_CXX11_INLINE_NAMESPACE_SUPPORT
     using Win32::ThreadId;
     using Win32::get_current_thread_id;
-    using Win32::isThreadAlive;
+    using Win32::is_thread_alive;
 #endif
     //@endcond
 
index b480ccff8fbb4e0a42b956d299a6d9946deadb1c..5795d2d26119e404255dfa6d2a1e2fb433889a74 100644 (file)
@@ -392,7 +392,7 @@ namespace cds {
 
                         assert( p->m_list.m_idOwner.load( atomics::memory_order_relaxed ) == nullThreadId
                             || p->m_list.m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId
-                            || !cds::OS::isThreadAlive( p->m_list.m_idOwner.load( atomics::memory_order_relaxed ) )
+                            || !cds::OS::is_thread_alive( p->m_list.m_idOwner.load( atomics::memory_order_relaxed ) )
                             );
 
                         al.Delete( p );
index 7bbcb73e59de39d52dfa72d8583915144d58507f..1516679059732e97a17850696434368dee78c63c 100644 (file)
@@ -68,7 +68,7 @@ namespace cds { namespace gc {
             for ( hplist_node * hprec = pHead; hprec; hprec = pNext ) {
                 assert( hprec->m_idOwner.load( atomics::memory_order_relaxed ) == nullThreadId
                     || hprec->m_idOwner.load( atomics::memory_order_relaxed ) == mainThreadId
-                    || !cds::OS::isThreadAlive( hprec->m_idOwner.load( atomics::memory_order_relaxed ) )
+                    || !cds::OS::is_thread_alive( hprec->m_idOwner.load( atomics::memory_order_relaxed ) )
                 );
                 details::retired_vector& vect = hprec->m_arrRetired;
                 details::retired_vector::iterator itRetired = vect.begin();
@@ -304,7 +304,7 @@ namespace cds { namespace gc {
                 // Several threads may work concurrently so we use atomic technique only.
                 {
                     cds::OS::ThreadId curOwner = hprec->m_idOwner.load(atomics::memory_order_acquire);
-                    if ( curOwner == nullThreadId || !cds::OS::isThreadAlive( curOwner )) {
+                    if ( curOwner == nullThreadId || !cds::OS::is_thread_alive( curOwner )) {
                         if ( !hprec->m_idOwner.compare_exchange_strong( curOwner, curThreadId, atomics::memory_order_release, atomics::memory_order_relaxed ))
                             continue;
                     }