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

Method cache_add

lib_acl_cpp/src/queue/queue_manager.cpp:314–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314bool queue_manager::cache_add(queue_file* fp)
315{
316 bool ret;
317
318 std::map<acl::string, queue_file*>::iterator it;
319 m_queueLocker.lock();
320 it = m_queueList.find(fp->key());
321 if (it == m_queueList.end()) {
322 m_queueList[fp->key()] = fp;
323 ret = true;
324 } else {
325 ret = false;
326 }
327 m_queueLocker.unlock();
328 return ret;
329}
330
331bool queue_manager::cache_del(const char* key)
332{

Callers 1

move_fileMethod · 0.80

Calls 4

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

Tested by

no test coverage detected