diff options
| author | ruki <[email protected]> | 2026-01-04 16:09:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-04 16:16:43 +0800 |
| commit | 53d9bb371a777e78751ff13b7404bd978019c9df (patch) | |
| tree | e094686f843fc36dbced2e6faef738a4ebbe7328 | |
| parent | f981bdc526667be6eaf8d20b786773a3a28cfb0c (diff) | |
fix semaphore in runjobs
| -rw-r--r-- | xmake/modules/async/runjobs.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua index fdb9891e8..20e8890a1 100644 --- a/xmake/modules/async/runjobs.lua +++ b/xmake/modules/async/runjobs.lua @@ -276,6 +276,9 @@ function _timer_loop(state) state.on_timer(indices) end end + + -- we cannot post semaphore in a dead coroutine + state.timer_semaphore = nil end -- the refresh loop for multirow progress (independent timer with its own timeout) @@ -297,6 +300,9 @@ function _progress_refresh_loop(state) progress.refresh() end end + + -- we cannot post semaphore in a dead coroutine + state.progress_refresh_semaphore = nil end -- the waiting indicator loop @@ -343,6 +349,9 @@ function _waiting_indicator_loop(state) waiting_indicator_helper:write() end end + + -- we cannot post semaphore in a dead coroutine + state.waiting_indicator_semaphore = nil end -- consume jobs |
