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

Method lock

lib_acl_cpp/independent/connpool/src/locker.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool locker::lock()
28{
29 if (nowait_)
30 return pthread_mutex_trylock(pMutex_) == -1 ? false : true;
31 else
32 return pthread_mutex_lock(pMutex_) == -1 ? false : true;
33}
34
35bool locker::unlock()
36{

Callers 6

peekMethod · 0.45
putMethod · 0.45
set_delay_destroyMethod · 0.45
set_aliveMethod · 0.45
check_idleMethod · 0.45
reset_statisticsMethod · 0.45

Calls 2

pthread_mutex_trylockFunction · 0.85
pthread_mutex_lockFunction · 0.85

Tested by

no test coverage detected