MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / empty

Method empty

3rd/MPMCQueue/include/MPMCQueue.hpp:147–147  ·  view source on GitHub ↗

* @brief Check if the queue is empty (approximate) * * Note: This is an approximation and may not be accurate in concurrent * scenarios. * * @return true if the queue appears to be empty * @return false if the queue appears to have elements */

Source from the content-addressed store, hash-verified

145 * @return false if the queue appears to have elements
146 */
147 [[nodiscard]] auto empty() const noexcept -> bool { return size() == 0; }
148
149 private:
150 struct Cell {

Callers 11

TickUpdateMethod · 0.80
WakeupMethod · 0.80
WakeupOneMethod · 0.80
PickNextMethod · 0.80
IsEmptyMethod · 0.80
PickNextMethod · 0.80
IsEmptyMethod · 0.80
PickNextMethod · 0.80
IsEmptyMethod · 0.80
OnTickMethod · 0.80
GetCoreIdForThreadMethod · 0.80

Calls

no outgoing calls

Tested by 1

GetCoreIdForThreadMethod · 0.64