diff options
| author | ruki <[email protected]> | 2025-04-16 22:41:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 28e35d67e2cf08069c971c2235845389143b5f0e (patch) | |
| tree | 79b494583b542484b2dc4753126e8954a93bd5e1 /tests/modules/thread | |
| parent | 8bf1576c641f3b68bb43c50929cdcec8ee73ff86 (diff) | |
bind native thread apis
Diffstat (limited to 'tests/modules/thread')
| -rw-r--r-- | tests/modules/thread/sleep.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/thread/sleep.lua b/tests/modules/thread/sleep.lua index 4dc350cd3..8d4c410f6 100644 --- a/tests/modules/thread/sleep.lua +++ b/tests/modules/thread/sleep.lua @@ -14,7 +14,7 @@ end function main() local t0 = thread.start_named("thread_0", callback, 0) local t1 = thread.start_named("thread_1", callback, 1) - thread.wait(t0, -1) - thread.wait(t1, -1) + t0:wait(-1) + t1:wait(-1) end |
