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

Function empty

extern/libcds/cds/container/fcpriority_queue.h:264–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

262 If the combining is in process the function waits while combining done.
263 */
264 bool empty()
265 {
266 bool bRet = false;
267 auto const& pq = m_PQueue;
268 m_FlatCombining.invoke_exclusive( [&pq, &bRet]() { bRet = pq.empty(); } );
269 return bRet;
270 }
271
272 /// Internal statistics
273 stat const& statistics() const

Callers

nothing calls this directly

Calls 2

invoke_exclusiveMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected