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

Method enqueue_with

extern/libcds/cds/container/msqueue.h:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 */
284 template <typename Func>
285 bool enqueue_with( Func f )
286 {
287 scoped_node_ptr p( alloc_node());
288 f( p->m_value );
289 if ( base_class::enqueue( *p )) {
290 p.release();
291 return true;
292 }
293 return false;
294 }
295
296 /// Enqueues data of type \ref value_type constructed from <tt>std::forward<Args>(args)...</tt>
297 template <typename... Args>

Callers 3

testMethod · 0.45
testMethod · 0.45
testMethod · 0.45

Calls 3

alloc_nodeFunction · 0.70
enqueueFunction · 0.70
releaseMethod · 0.45

Tested by 3

testMethod · 0.36
testMethod · 0.36
testMethod · 0.36