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

Function bthread_mutex_trylock

src/bthread/mutex.cpp:1205–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203}
1204
1205int bthread_mutex_trylock(bthread_mutex_t* m) {
1206 return bthread::mutex_trylock_impl(m);
1207}
1208
1209int bthread_mutex_lock_contended(bthread_mutex_t* m) {
1210 return bthread::mutex_lock_contended_impl(m, NULL);

Callers 5

rwlock.cppFile · 0.85
rwlock_trywrlockFunction · 0.85
try_lockMethod · 0.85
unique_lockMethod · 0.85
try_lockMethod · 0.85

Calls 1

mutex_trylock_implFunction · 0.85

Tested by

no test coverage detected