MCPcopy Create free account
hub / github.com/catboost/catboost / Enqueue

Method Enqueue

library/cpp/threading/chunk_queue/queue.h:259–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

SpinLockPauseFunction · 0.85

Tested by

no test coverage detected