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

Function pthread_mutex_trylock

src/bthread/mutex.cpp:1320–1322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318#endif // OS_POSIX __USE_XOPEN2K
1319
1320int pthread_mutex_trylock(pthread_mutex_t* mutex) {
1321 return bthread::pthread_mutex_trylock_impl(mutex);
1322}
1323
1324int pthread_mutex_unlock(pthread_mutex_t* mutex) {
1325 return bthread::pthread_mutex_unlock_impl(mutex);

Callers 5

TEST_FFunction · 0.85
TESTFunction · 0.85
unique_lockMethod · 0.85
try_lockMethod · 0.85
try_lockFunction · 0.85

Calls 1

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68