free_head_ = gList;
}
+ // cppcheck-suppress functionConst
void clear()
{
for ( guard* cur = array_, *last = array_ + capacity(); cur < last; ++cur )
atomics::atomic<unsigned int> sync_; ///< dummy var to introduce synchronizes-with relationship between threads
char pad2_[cds::c_nCacheLineSize];
+ // CppCheck warn: pad1_ and pad2_ is uninitialized in ctor
+ // cppcheck-suppress uninitMemberVar
thread_data( guard* guards, size_t guard_count, retired_ptr* retired_arr, size_t retired_capacity )
: hazards_( guards, guard_count )
, retired_( retired_arr, retired_capacity )
private:
//@cond
CDS_EXPORT_API thread_record* create_thread_data();
- CDS_EXPORT_API void destroy_thread_data( thread_record* pRec );
+ static CDS_EXPORT_API void destroy_thread_data( thread_record* pRec );
/// Allocates Hazard Pointer SMR thread private data
CDS_EXPORT_API thread_record* alloc_thread_data();