diff options
| author | ruki <[email protected]> | 2025-10-05 00:12:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-05 00:13:14 +0800 |
| commit | 49e117984150d88b8151f317c866935024e2367c (patch) | |
| tree | 607b8a1e52d13cbbbe767ad3bbe3634922a88f56 | |
| parent | af8d455a20ebf6d64333737979d13d41abfaf920 (diff) | |
fix semaphore tostring
| -rw-r--r-- | xmake/core/base/scheduler.lua | 2 |
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 |
