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

Method enqueue

extern/libcds/cds/container/moir_queue.h:135–143  ·  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::MoirQueue::enqueue. Returns \p true if success, \p false otherwise. */

Source from the content-addressed store, hash-verified

133 Returns \p true if success, \p false otherwise.
134 */
135 bool enqueue( value_type const& val )
136 {
137 scoped_node_ptr p( alloc_node(val));
138 if ( base_class::enqueue( *p )) {
139 p.release();
140 return true;
141 }
142 return false;
143 }
144
145 /// Enqueues \p val value into the queue, move semantics
146 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