MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / __TBB_CATCH

Function __TBB_CATCH

benchmarks/tbb/concurrent_vector.cpp:569–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 __TBB_TRY { // exception can occur here
568 copy( s, segment_table[i].load<relaxed>().pointer<void>(), my_segment_size );
569 } __TBB_CATCH(...) { // destroy all the already copied items
570 helper for_each(&old.table[0], old.first_block, element_size,
571 0, 0, segment_base(i)+ my_segment_size);
572 for_each.apply( helper::destroy_body(destroy) );
573 __TBB_RETHROW();
574 }
575 my_segment_size = i? segment_size( ++i ) : segment_size( i = first_block );
576 }
577 // commit the changes

Callers

nothing calls this directly

Calls 3

segment_baseFunction · 0.85
destroy_bodyClass · 0.85
applyMethod · 0.45

Tested by

no test coverage detected