MCPcopy Create free account
hub / github.com/acl-dev/acl / cache_del

Method cache_del

lib_acl_cpp/src/queue/queue_manager.cpp:331–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331bool queue_manager::cache_del(const char* key)
332{
333 bool ret;
334
335 std::map<acl::string, queue_file*>::iterator it;
336 m_queueLocker.lock();
337 it = m_queueList.find(key);
338 if (it != m_queueList.end()) {
339 m_queueList.erase(it);
340 ret = true;
341 } else {
342 ret = false;
343 }
344
345 m_queueLocker.unlock();
346 return ret;
347}
348
349bool queue_manager::remove(queue_file* fp)
350{

Callers

nothing calls this directly

Calls 4

lockMethod · 0.45
findMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected