Commit 9174591
committed
Remove do-while loops from Linux/macOS wait operations
Previously, the wait functions on Linux (futex) and macOS (ULockWait) were called in a do-while loop, repeatedly checking the condition and waiting. This commit removes the loops, so the wait operation is now performed only once per call, simplifying the logic and potentially improving efficiency.1 parent c0122b7 commit 9174591
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
211 | 208 | | |
212 | 209 | | |
213 | 210 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
220 | 214 | | |
221 | 215 | | |
222 | 216 | | |
| |||
0 commit comments