diff options
| author | ruki <[email protected]> | 2025-04-17 22:46:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 6eccd1efa540d634e35eb29cf923025e0667aa0c (patch) | |
| tree | cd33e9f7ff6e0ab31698ce01e53f7eb79ebf1cce /tests/modules/thread | |
| parent | cd6a9a33613a0a8449c026dd4e4bd77934e29e90 (diff) | |
improve thread context
Diffstat (limited to 'tests/modules/thread')
| -rw-r--r-- | tests/modules/thread/sleep.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/thread/sleep.lua b/tests/modules/thread/sleep.lua index 8d4c410f6..9f7bb859c 100644 --- a/tests/modules/thread/sleep.lua +++ b/tests/modules/thread/sleep.lua @@ -1,6 +1,8 @@ import("core.thread.thread") function callback(id) + print("hello") + --[[ print("%s: %d starting ..", thread.running(), id) local dt = os.mclock() for i = 1, 10 do @@ -9,6 +11,7 @@ function callback(id) end dt = os.mclock() - dt print("%s: %d end, dt: %d ms", thread.running(), id, dt) + ]] end function main() |
