}
/// 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
}
/// 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 )
#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
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 );
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();
// 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;
}