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

Method empty

extern/libcds/cds/intrusive/msqueue.h:559–564  ·  view source on GitHub ↗

Checks if the queue is empty

Source from the content-addressed store, hash-verified

557
558 /// Checks if the queue is empty
559 bool empty() const
560 {
561 typename gc::Guard guard;
562 node_type * p = guard.protect( m_pHead, []( node_type * pNode ) -> value_type * { return node_traits::to_value_ptr( pNode );});
563 return p->m_pNext.load( memory_model::memory_order_relaxed ) == nullptr;
564 }
565
566 /// Clear the queue
567 /**

Callers 7

clearFunction · 0.45
emptyFunction · 0.45
fcqueue.hFile · 0.45
fc_processFunction · 0.45
emptyFunction · 0.45
fcstack.hFile · 0.45
get_Function · 0.45

Calls 2

protectMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected