MCPcopy Create free account
hub / github.com/apache/brpc / rwlock_timedrdlock

Function rwlock_timedrdlock

src/bthread/rwlock.cpp:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static inline int rwlock_timedrdlock(bthread_rwlock_t* __restrict rwlock,
81 const struct timespec* __restrict abstime) {
82 return rwlock_rdlock_impl(rwlock, abstime);
83}
84
85// Returns 0 if the lock was acquired, otherwise errno.
86static inline int rwlock_tryrdlock(bthread_rwlock_t* rwlock) {

Callers 1

Calls 1

rwlock_rdlock_implFunction · 0.85

Tested by

no test coverage detected