MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / ~private_server

Method ~private_server

benchmarks/tbb/private_server.cpp:344–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344private_server::~private_server() {
345 __TBB_ASSERT( my_net_slack_requests==0, NULL );
346 for( size_t i=my_n_thread; i--; )
347 my_thread_array[i].~padded_private_worker();
348 tbb::cache_aligned_allocator<padded_private_worker>().deallocate( my_thread_array, my_n_thread );
349 tbb::internal::poison_pointer( my_thread_array );
350}
351
352inline bool private_server::try_insert_in_asleep_list( private_worker& t ) {
353 asleep_list_mutex_type::scoped_lock lock;

Callers 1

remove_server_refMethod · 0.95

Calls 2

poison_pointerFunction · 0.85
deallocateMethod · 0.45

Tested by

no test coverage detected