diff options
| author | ruki <[email protected]> | 2025-03-24 22:49:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:55 +0800 |
| commit | 502f7b6ddf39b8053c523d7a58532e0a5998c414 (patch) | |
| tree | 7c000a58d79769e9c402b6d47d1a5f963bef5e75 /xmake/modules/async | |
| parent | 812d8ec053376a541193dc943362797fd2c4541e (diff) | |
add target_utils
Diffstat (limited to 'xmake/modules/async')
| -rw-r--r-- | xmake/modules/async/jobgraph.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/async/jobgraph.lua b/xmake/modules/async/jobgraph.lua index cc4d0c743..3767cfe73 100644 --- a/xmake/modules/async/jobgraph.lua +++ b/xmake/modules/async/jobgraph.lua @@ -176,6 +176,11 @@ function jobgraph:size() return self._size end +-- is empty? +function jobgraph:empty() + return self:size() == 0 +end + -- tostring function jobgraph:__tostring() return string.format("<jobgraph:%s/%d>", self:name() or "anonymous", self:size()) |
