Single consumer only.
| 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 | |
| 170 | private: |
| 171 | // TODO(drexin): Programatically get the cache line size. |
nothing calls this directly
no outgoing calls
no test coverage detected