MCPcopy Create free account
hub / github.com/3rdparty/libprocess / empty

Method empty

src/mpsc_linked_queue.hpp:164–168  ·  view source on GitHub ↗

Single consumer only.

Source from the content-addressed store, hash-verified

162
163 // Single consumer only.
164 bool empty()
165 {
166 return tail->next.load(std::memory_order_relaxed) == nullptr &&
167 head.load(std::memory_order_relaxed) == tail;
168 }
169
170private:
171 // TODO(drexin): Programatically get the cache line size.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected