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

Method cache_find

lib_acl_cpp/src/queue/queue_manager.cpp:283–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283queue_file* queue_manager::cache_find(const char* key)
284{
285 queue_file* fp = NULL;
286 std::map<acl::string, queue_file*>::iterator it;
287 m_queueLocker.lock();
288 it = m_queueList.find(key);
289 if (it != m_queueList.end()) {
290 fp = it->second;
291 }
292 m_queueLocker.unlock();
293 return fp;
294}
295
296bool queue_manager::cache_check(queue_file* fp)
297{

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