summaryrefslogtreecommitdiff
path: root/xmake/modules
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 /xmake/modules
parent44098a2d8c47acdb78abe34c0dc8104ed823cf00 (diff)
modify timeout for runjobs
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/async/runjobs.lua4
1 files changed, 1 insertions, 3 deletions
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