summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-21 22:34:08 +0800
committerruki <[email protected]>2025-11-21 11:28:51 +0800
commit26004160d96a301b0cc2fc739413542ed6d324d6 (patch)
tree14a8ff8a6dc3c1b84fb71101f413f91fb9933924
parent44098a2d8c47acdb78abe34c0dc8104ed823cf00 (diff)
modify timeout for runjobs
-rw-r--r--xmake/actions/test/main.lua3
-rw-r--r--xmake/modules/async/runjobs.lua4
2 files changed, 3 insertions, 4 deletions
diff --git a/xmake/actions/test/main.lua b/xmake/actions/test/main.lua
index c85895b4d..0e7192d83 100644
--- a/xmake/actions/test/main.lua
+++ b/xmake/actions/test/main.lua
@@ -355,7 +355,8 @@ function _run_tests(tests)
end
end, {total = #ordertests,
comax = jobs,
- isolate = true})
+ isolate = true,
+ progress_refresh = true})
-- restore the original progress style
progress.restore_style()
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua
index 04bae03c7..1d5927e1d 100644
--- a/xmake/modules/async/runjobs.lua
+++ b/xmake/modules/async/runjobs.lua
@@ -80,8 +80,6 @@ function _init_progress(state, opt)
})
state.progress_wrapper = progress_wrapper
- -- init progress refresh timeout (for multirow progress refresh timer)
- state.progress_refresh_timeout = 500
end
-- start timer (on_timer callback)
@@ -216,7 +214,7 @@ function _progress_refresh_loop(state)
-- start refreshing progress using semaphore wait with timeout for quick exit
while not state.stop do
-- wait for refresh timeout, allows quick exit when state.stop is set via post
- state.progress_refresh_semaphore:wait(state.progress_refresh_timeout)
+ state.progress_refresh_semaphore:wait(state.timeout)
-- refresh progress if not stopped
if not state.stop then