MCPcopy Create free account
hub / github.com/catboost/catboost / ~TLockFreeQueue

Method ~TLockFreeQueue

util/thread/lfqueue.h:233–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 {
232 }
233 ~TLockFreeQueue() {
234 AsyncRef();
235 AsyncUnref(); // should free FreeList
236 EraseList(JobQueue.load(std::memory_order_relaxed)->PushQueue.load(std::memory_order_relaxed));
237 EraseList(JobQueue.load(std::memory_order_relaxed)->PopQueue.load(std::memory_order_relaxed));
238 delete JobQueue;
239 }
240 template <typename U>
241 void Enqueue(U&& data) {
242 TListNode* newNode = new TListNode(std::forward<U>(data));

Callers

nothing calls this directly

Calls 2

EraseListFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected