diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/async/jobpool.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/async/jobpool.lua b/xmake/modules/private/async/jobpool.lua index 94b1e6a56..dc314ad08 100644 --- a/xmake/modules/private/async/jobpool.lua +++ b/xmake/modules/private/async/jobpool.lua @@ -44,6 +44,11 @@ function jobpool:newjob(name, run) return {name = name, run = run} end +-- get the last dependent job of the given job +function jobpool:lastdep(job) + return job._deps and job._deps:size() > 0 and job._deps:last() +end + -- add job to the given job node -- -- @param name the job name |
