| 1127 | } |
| 1128 | |
| 1129 | void FastPthreadMutex::lock() { |
| 1130 | if (try_lock()) { |
| 1131 | return; |
| 1132 | } |
| 1133 | |
| 1134 | PTHREAD_MUTEX_CHECK_OWNER(_owner); |
| 1135 | (void)lock_contended(NULL); |
| 1136 | } |
| 1137 | |
| 1138 | bool FastPthreadMutex::try_lock() { |
| 1139 | auto split = (bthread::MutexInternal*)&_futex; |
no test coverage detected