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

Function push

benchmarks/tbb/concurrent_priority_queue.h:212–217  ·  view source on GitHub ↗

Pushes elem onto the queue, increasing capacity of queue if necessary This operation can be safely used concurrently with other push, try_pop or emplace operations. */

Source from the content-addressed store, hash-verified

210 //! Pushes elem onto the queue, increasing capacity of queue if necessary
211 /** This operation can be safely used concurrently with other push, try_pop or emplace operations. */
212 void push(const_reference elem) {
213 cpq_operation op_data(elem, PUSH_OP);
214 my_aggregator.execute(&op_data);
215 if (op_data.status == FAILED) // exception thrown
216 throw_exception(eid_bad_alloc);
217 }
218
219#if __TBB_CPP11_RVALUE_REF_PRESENT
220 //! Pushes elem onto the queue, increasing capacity of queue if necessary

Callers 7

threadMethod · 0.85
position_enumeratorMethod · 0.85
move_nextMethod · 0.85
emplaceMethod · 0.85
emplaceMethod · 0.85
abort_pushMethod · 0.85
emplaceFunction · 0.85

Calls 2

throw_exceptionFunction · 0.70
executeMethod · 0.45

Tested by

no test coverage detected