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

Function pthread_mutex_timedlock

src/bthread/mutex.cpp:1314–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1312
1313#if defined(OS_LINUX) && defined(OS_POSIX) && defined(__USE_XOPEN2K)
1314int pthread_mutex_timedlock(pthread_mutex_t *__restrict __mutex,
1315 const struct timespec *__restrict __abstime) {
1316 return bthread::pthread_mutex_timedlock_impl(__mutex, __abstime);
1317}
1318#endif // OS_POSIX __USE_XOPEN2K
1319
1320int pthread_mutex_trylock(pthread_mutex_t* mutex) {

Callers 3

do_pthread_timedlockFunction · 0.85
TESTFunction · 0.85
timed_lockFunction · 0.85

Calls 1

Tested by 2

do_pthread_timedlockFunction · 0.68
TESTFunction · 0.68