summaryrefslogtreecommitdiff
path: root/xmake/modules/async
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-29 22:37:39 +0800
committerruki <[email protected]>2025-10-29 10:37:58 +0800
commit88e30eca65d91dcdb569a866a35f5cc1d15c1f61 (patch)
tree68d767ee63592edfd4e4c87937b1a9e7864377c6 /xmake/modules/async
parentb0d93f0996b95ee5e74b0ddbca3237d7734a789f (diff)
check idle progress
Diffstat (limited to 'xmake/modules/async')
-rw-r--r--xmake/modules/async/runjobs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua
index e43286a13..be1cc2ad5 100644
--- a/xmake/modules/async/runjobs.lua
+++ b/xmake/modules/async/runjobs.lua
@@ -196,6 +196,7 @@ function _consume_jobs_loop(state, run_in_remote)
end
-- run job
+ co_running:data_set("runjobs.running", true)
local job_index = state.finished_count + 1
state.running_jobs_indices[job_index] = job_index
if job_func then
@@ -206,6 +207,7 @@ function _consume_jobs_loop(state, run_in_remote)
job_func(job_index, total, {progress = state.progress_wrapper})
end
state.running_jobs_indices[job_index] = nil
+ co_running:data_set("runjobs.running", false)
end,
catch
{