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

Method lock

lib_acl_cpp/src/queue/queue_file.cpp:388–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388bool queue_file::lock(void)
389{
390 if (!m_bLockerOpened) {
391 return false;
392 }
393 if (!m_locker.try_lock()) {
394 return false;
395 }
396 return true;
397}
398
399bool queue_file::unlock(void)
400{

Callers 4

cache_findMethod · 0.45
cache_checkMethod · 0.45
cache_addMethod · 0.45
cache_delMethod · 0.45

Calls 1

try_lockMethod · 0.45

Tested by

no test coverage detected