| 1700 | // return thread_list_interrupt(lst, error_number); |
| 1701 | } |
| 1702 | static void spinlock_unlock(void* s_) |
| 1703 | { |
| 1704 | auto splock = (spinlock*)s_; |
| 1705 | splock->unlock(); |
| 1706 | } |
| 1707 | int mutex::lock(Timeout timeout) { |
| 1708 | if (try_lock() == 0) return 0; |
| 1709 | for (auto re = retries; re; --re) { |