Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
bool 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
35
bool locker::unlock()
36
{
Callers
6
peek
Method · 0.45
put
Method · 0.45
set_delay_destroy
Method · 0.45
set_alive
Method · 0.45
check_idle
Method · 0.45
reset_statistics
Method · 0.45
Calls
2
pthread_mutex_trylock
Function · 0.85
pthread_mutex_lock
Function · 0.85
Tested by
no test coverage detected