| 257 | |
| 258 | template <typename TT> |
| 259 | void Enqueue(TT&& value) { |
| 260 | ui64 tag = NextTag(); |
| 261 | while (!TryEnqueue(std::forward<TT>(value), tag)) { |
| 262 | SpinLockPause(); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | bool Dequeue(T& value) { |
| 267 | size_t index = 0; |
nothing calls this directly
no test coverage detected