MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / detach_all_thread

Method detach_all_thread

extern/libcds/src/dhp.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 CDS_EXPORT_API void smr::detach_all_thread()
233 {
234 thread_record * pNext = nullptr;
235 const cds::OS::ThreadId nullThreadId = cds::OS::c_NullThreadId;
236
237 for ( thread_record * hprec = thread_list_.load( atomics::memory_order_relaxed ); hprec; hprec = pNext ) {
238 pNext = hprec->next_;
239 if ( hprec->thread_id_.load( atomics::memory_order_relaxed ) != nullThreadId ) {
240 free_thread_data( hprec, false );
241 }
242 }
243 }
244
245 CDS_EXPORT_API smr::thread_record* smr::create_thread_data()
246 {

Callers 1

destructMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected