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

Method enqueue

extern/libcds/cds/container/msqueue.h:253–261  ·  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::MSQueue::enqueue. Returns \p true if success, \p false otherwise. */

Source from the content-addressed store, hash-verified

251 Returns \p true if success, \p false otherwise.
252 */
253 bool enqueue( value_type const& val )
254 {
255 scoped_node_ptr p( alloc_node(val));
256 if ( base_class::enqueue( *p )) {
257 p.release();
258 return true;
259 }
260 return false;
261 }
262
263 /// Enqueues \p val in the queue, move semantics
264 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