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

Function copy_hazards

extern/libcds/src/dhp.cpp:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 typedef std::vector<void*, allocator<void*>> hp_vector;
345
346 inline void copy_hazards( hp_vector& vect, guard const* arr, size_t size )
347 {
348 for ( guard const* end = arr + size; arr != end; ++arr ) {
349 void* hp = arr->get( atomics::memory_order_relaxed );
350 if ( hp )
351 vect.push_back( hp );
352 }
353 }
354
355 inline size_t retire_data( hp_vector const& plist, retired_array& stg, retired_block* block, size_t block_size )
356 {

Callers 1

scanMethod · 0.85

Calls 2

getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected