diff options
| author | ruki <[email protected]> | 2025-12-26 23:33:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-26 23:33:11 +0800 |
| commit | e057ec9e4a30feb8b115cae4b9e49015068ba718 (patch) | |
| tree | b1a383e07d15a0a1663fa7e54a958ac226980464 | |
| parent | f6bead07b47ebf489125198f97cd398ef2b67d22 (diff) | |
fix typo
| -rw-r--r-- | xmake/core/base/scheduler.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/scheduler.lua b/xmake/core/base/scheduler.lua index b11be7d4e..060ceb616 100644 --- a/xmake/core/base/scheduler.lua +++ b/xmake/core/base/scheduler.lua @@ -63,12 +63,12 @@ function _semaphore:post(value) local waiting = self._WAITING local post_count = 0 while not waiting:empty() do - local cp = waiting:pop() - if not cp:is_suspended() then + local co = waiting:pop() + if not co:is_suspended() then self._POSTING = false return -1, string.format("%s cannot be resumed, status: %s", co, co:status()) end - local ok, errors = scheduler:co_resume(cp) + local ok, errors = scheduler:co_resume(co) if not ok then self._POSTING = false return -1, errors |
