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

Method enqueue

extern/libcds/cds/container/segmented_queue.h:248–256  ·  view source on GitHub ↗

Inserts a new element at last segment of the queue The function makes queue node in dynamic memory calling copy constructor for \p val and then it calls intrusive::SEgmentedQueue::enqueue. Returns \p true if success, \p false otherwise. */

Source from the content-addressed store, hash-verified

246 Returns \p true if success, \p false otherwise.
247 */
248 bool enqueue( value_type const& val )
249 {
250 scoped_node_ptr p( alloc_node(val));
251 if ( base_class::enqueue( *p )) {
252 p.release();
253 return true;
254 }
255 return false;
256 }
257
258 /// Inserts a new element at last segment of the queue, move semantics
259 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