| 155 | } |
| 156 | |
| 157 | static inline void CondVar_BeginWait(CondVar* cv, LightLock* lock) |
| 158 | { |
| 159 | s32 val; |
| 160 | do |
| 161 | val = __ldrex(cv) - 1; |
| 162 | while (__strex(cv, val)); |
| 163 | LightLock_Unlock(lock); |
| 164 | } |
| 165 | |
| 166 | static inline bool CondVar_EndWait(CondVar* cv, s32 num_threads) |
| 167 | { |
no test coverage detected