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

Method Enqueue

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

Source from the content-addressed store, hash-verified

398
399 template <typename TT>
400 void Enqueue(TT&& value) {
401 while (!TryEnqueue(std::forward<TT>(value))) {
402 SpinLockPause();
403 }
404 }
405
406 bool Dequeue(T& value) {
407 for (size_t i = 0; i < Concurrency; ++i) {

Callers

nothing calls this directly

Calls 1

SpinLockPauseFunction · 0.85

Tested by

no test coverage detected