| 1735 | return (int)ret - 1; |
| 1736 | } |
| 1737 | inline void do_mutex_unlock(mutex* m) |
| 1738 | { |
| 1739 | SCOPED_LOCK(m->splock); |
| 1740 | ScopedLockHead h(m); |
| 1741 | m->owner.store(h); |
| 1742 | if (h) |
| 1743 | prelocked_thread_interrupt(h, -1); |
| 1744 | } |
| 1745 | static void mutex_unlock(void* m_) |
| 1746 | { |
| 1747 | if (!m_) return; |
no test coverage detected