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

Method IsEmpty

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

Source from the content-addressed store, hash-verified

485 }
486
487 bool IsEmpty() {
488 for (size_t i = 0; i < Concurrency; ++i) {
489 TQueueType& queue = Queues[i];
490 if (queue.ReadLock.IsLocked()) {
491 continue;
492 }
493 TTryGuard guard{queue.ReadLock};
494 if (!guard) {
495 continue;
496 }
497 if (!queue.IsEmpty()) {
498 return false;
499 }
500 }
501 return true;
502 }
503
504 private:
505 template <typename TT>

Callers

nothing calls this directly

Calls 2

IsLockedMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected