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