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

Method enqueue

extern/libcds/cds/container/basket_queue.h:293–301  ·  view source on GitHub ↗

Enqueues \p val value into the queue. The function makes queue node in dynamic memory calling copy constructor for \p val and then it calls \p intrusive::BasketQueue::enqueue(). Returns \p true if success, \p false otherwise. */

Source from the content-addressed store, hash-verified

291 Returns \p true if success, \p false otherwise.
292 */
293 bool enqueue( value_type const& val )
294 {
295 scoped_node_ptr p( alloc_node(val));
296 if ( base_class::enqueue( *p )) {
297 p.release();
298 return true;
299 }
300 return false;
301 }
302
303 /// Enqueues \p val value into the queue, move semantics
304 bool enqueue( value_type&& val )

Callers

nothing calls this directly

Calls 4

alloc_nodeFunction · 0.70
enqueueFunction · 0.70
moveFunction · 0.50
releaseMethod · 0.45

Tested by

no test coverage detected