diff options
| author | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
|---|---|---|
| committer | wtz <[email protected]> | 2023-07-19 12:35:52 +0800 |
| commit | f75224a8435d0eb9cdda79f8bc571eeef25a8e33 (patch) | |
| tree | 278e00b17c8f5558df1c1a21f1204078ea62a58f /xmake/modules/private/async | |
| parent | ca83e9a78b7f2d45e833fa705c880867ad2381c6 (diff) | |
Fix grammar
Diffstat (limited to 'xmake/modules/private/async')
| -rw-r--r-- | xmake/modules/private/async/jobpool.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/async/runjobs.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/private/async/jobpool.lua b/xmake/modules/private/async/jobpool.lua index 0b20cd5f4..7f9067343 100644 --- a/xmake/modules/private/async/jobpool.lua +++ b/xmake/modules/private/async/jobpool.lua @@ -123,7 +123,7 @@ function jobpool:pop() -- update all parents nodes for _, p in ipairs(parents) do - -- we need avoid add it the leafjobs repeatly, it will cause dead-loop when poping group job + -- we need to avoid adding it to leafjobs repeatly, it will cause dead-loop when poping group job -- @see https://github.com/xmake-io/xmake/issues/2740 if not p._leaf then p._priority = math.max(p._priority or 0, priority + 1) diff --git a/xmake/modules/private/async/runjobs.lua b/xmake/modules/private/async/runjobs.lua index 66ccf61b1..98ad63747 100644 --- a/xmake/modules/private/async/runjobs.lua +++ b/xmake/modules/private/async/runjobs.lua @@ -67,7 +67,7 @@ function main(name, jobs, opt) assert(jobs, "runjobs: no jobs!") -- show waiting tips? - local showprogress = io.isatty() and (opt.progress or opt.showtips) -- we need hide wait characters if is not a tty + local showprogress = io.isatty() and (opt.progress or opt.showtips) -- we need to hide wait characters if is not a tty local progress_helper local backnum = 0 if showprogress then @@ -186,7 +186,7 @@ function main(name, jobs, opt) break end - -- priority changed? we need wait all running jobs exited + -- priority changed? we need to wait all running jobs exited priority_curr = priority or priority_prev assert(priority_curr >= priority_prev, "runjobs: invalid priority(%d < %d)!", priority_curr, priority_prev) if priority_curr > priority_prev then @@ -261,7 +261,7 @@ function main(name, jobs, opt) end end) - -- need only one job exited if be same priority + -- only need one job exited if be same priority if priority_curr == priority_prev then scheduler.co_group_wait(group_name, {limit = 1}) else |
