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

Method Enqueue

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

Source from the content-addressed store, hash-verified

461
462 template <typename TT>
463 void Enqueue(TT&& value) {
464 while (!TryEnqueue(std::forward<TT>(value))) {
465 SpinLockPause();
466 }
467 }
468
469 bool Dequeue(T& value) {
470 size_t readPos = GetCycleCount();

Callers

nothing calls this directly

Calls 1

SpinLockPauseFunction · 0.85

Tested by

no test coverage detected