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. */
| 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 |
no test coverage detected