Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ try_rdlock
Method
try_rdlock
src/bthread/rwlock.h:59–61 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
57
}
58
59
bool try_rdlock() {
60
return 0 == bthread_rwlock_tryrdlock(&_rwlock);
61
}
62
63
bool timed_rdlock(const struct timespec* abstime) {
64
return 0 == bthread_rwlock_timedrdlock(&_rwlock, abstime);
Callers
1
TEST
Function · 0.80
Calls
1
bthread_rwlock_tryrdlock
Function · 0.85
Tested by
1
TEST
Function · 0.64