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

Method destruct

extern/libcds/src/dhp.cpp:158–168  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

156 }
157
158 /*static*/ CDS_EXPORT_API void smr::destruct( bool bDetachAll )
159 {
160 if ( instance_ ) {
161 if ( bDetachAll )
162 instance_->detach_all_thread();
163
164 instance_->~smr();
165 s_free_memory( instance_ );
166 instance_ = nullptr;
167 }
168 }
169
170 CDS_EXPORT_API smr::smr( size_t nInitialHazardPtrCount )
171 : initial_hazard_count_( nInitialHazardPtrCount < 4 ? 16 : nInitialHazardPtrCount )

Callers

nothing calls this directly

Calls 2

detach_all_threadMethod · 0.45
~smrMethod · 0.45

Tested by

no test coverage detected