static*/
| 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 ) |
nothing calls this directly
no test coverage detected