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

Function pthread_mutex_init

src/bthread/mutex.cpp:1298–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296#ifndef NO_PTHREAD_MUTEX_HOOK
1297
1298int pthread_mutex_init(pthread_mutex_t * __restrict mutex,
1299 const pthread_mutexattr_t* __restrict mutexattr) {
1300 INIT_MUTEX_OWNER_MAP_ENTRY(mutex, mutexattr);
1301 return bthread::sys_pthread_mutex_init(mutex, mutexattr);
1302}
1303
1304int pthread_mutex_destroy(pthread_mutex_t* mutex) {
1305 DESTROY_MUTEX_OWNER_MAP_ENTRY(mutex);

Callers 15

InfoThreadMethod · 0.85
InfoThreadMethod · 0.85
TEST_FFunction · 0.85
PublishServiceMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
SocketMethod · 0.85
SimuFutexMethod · 0.85
TaskMetaMethod · 0.85
VarMapWithLockMethod · 0.85
CollectorMethod · 0.85
MVarMapWithLockMethod · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
PublishServiceMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68