| 1146 | } |
| 1147 | |
| 1148 | bool FastPthreadMutex::timed_lock(const struct timespec* abstime) { |
| 1149 | if (try_lock()) { |
| 1150 | return true; |
| 1151 | } |
| 1152 | return 0 == lock_contended(abstime); |
| 1153 | } |
| 1154 | |
| 1155 | void FastPthreadMutex::unlock() { |
| 1156 | SUB_TLS_PTHREAD_LOCK_COUNT; |