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

Function empty

extern/libcds/cds/container/fcqueue.h:299–305  ·  view source on GitHub ↗

Checks if the queue is empty If the combining is in process the function waits while combining done. */

Source from the content-addressed store, hash-verified

297 If the combining is in process the function waits while combining done.
298 */
299 bool empty() const
300 {
301 bool bRet = false;
302 auto const& queue = m_Queue;
303 m_FlatCombining.invoke_exclusive( [&queue, &bRet]() { bRet = queue.empty(); } );
304 return bRet;
305 }
306
307 /// Internal statistics
308 stat const& statistics() const

Callers

nothing calls this directly

Calls 2

invoke_exclusiveMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected