summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-05 00:12:27 +0800
committerruki <[email protected]>2025-10-05 00:13:14 +0800
commit49e117984150d88b8151f317c866935024e2367c (patch)
tree607b8a1e52d13cbbbe767ad3bbe3634922a88f56
parentaf8d455a20ebf6d64333737979d13d41abfaf920 (diff)
fix semaphore tostring
-rw-r--r--xmake/core/base/scheduler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/scheduler.lua b/xmake/core/base/scheduler.lua
index a81b4652b..aaeeed5a0 100644
--- a/xmake/core/base/scheduler.lua
+++ b/xmake/core/base/scheduler.lua
@@ -125,7 +125,7 @@ end
-- tostring(semaphore)
function _semaphore:__tostring()
- return string.format("<sem: %s/%d>", self:name(), self:value())
+ return string.format("<co_semaphore: %s/%d>", self:name(), self._VALUE)
end
-- new a coroutine instance