| 1296 | #ifndef NO_PTHREAD_MUTEX_HOOK |
| 1297 | |
| 1298 | int 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 | |
| 1304 | int pthread_mutex_destroy(pthread_mutex_t* mutex) { |
| 1305 | DESTROY_MUTEX_OWNER_MAP_ENTRY(mutex); |
no outgoing calls