Commit 9b8bba8
authored
[hip] Fixed a busy wait in event_semaphore. (#19540)
Because of how locks were scheduled in iree_hal_hip_semaphore_wait we
would run scheduled callbacks after preparing our notification but
before waiting on it. However in running the scheduled callbacks it
would unconditionally post to the notification.
This change only posts to the notification if there was any forward
progress made.
---------
Signed-off-by: Andrew Woloszyn <[email protected]>1 parent 604cba8 commit 9b8bba8
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | 845 | | |
850 | 846 | | |
851 | 847 | | |
| |||
0 commit comments