MCPcopy Create free account
hub / github.com/ceph/ceph / queue

Method queue

src/common/WorkQueue.h:258–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 bool queue(T *item) {
259 pool->_lock.lock();
260 bool r = _enqueue(item);
261 pool->_cond.notify_one();
262 pool->_lock.unlock();
263 return r;
264 }
265 void dequeue(T *item) {
266 pool->_lock.lock();
267 _dequeue(item);

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
notify_oneMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected