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

Function bthread_mutex_timedlock

src/bthread/mutex.cpp:1249–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1247}
1248
1249int bthread_mutex_timedlock(bthread_mutex_t* __restrict m,
1250 const struct timespec* __restrict abstime) {
1251 return bthread_mutex_lock_impl(m, abstime);
1252}
1253
1254int bthread_mutex_unlock(bthread_mutex_t* m) {
1255 auto whole = (butil::atomic<unsigned>*)m->butex;

Callers 3

do_locksFunction · 0.85
rwlock.cppFile · 0.85
timed_lockMethod · 0.85

Calls 1

bthread_mutex_lock_implFunction · 0.85

Tested by 1

do_locksFunction · 0.68