summaryrefslogtreecommitdiff
path: root/tests/modules/thread
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-28 22:28:18 +0800
committerruki <[email protected]>2025-08-28 11:35:54 +0800
commitc316009d37c853c070030823c257d1cbcf94ea48 (patch)
tree273f759f75957e3c27e8828e17623d24f713792c /tests/modules/thread
parentc865267f3e781dc208f804efe8fa7f7fde53a064 (diff)
fix mutex cdata
Diffstat (limited to 'tests/modules/thread')
-rw-r--r--tests/modules/thread/mutex.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/thread/mutex.lua b/tests/modules/thread/mutex.lua
index 0f1954c8a..e969c0747 100644
--- a/tests/modules/thread/mutex.lua
+++ b/tests/modules/thread/mutex.lua
@@ -7,8 +7,8 @@ function callback(mutex)
for i = 1, 10 do
mutex:lock()
print("%s: %d", thread.running(), i)
- os.sleep(1000)
mutex:unlock()
+ os.sleep(1000)
end
dt = os.mclock() - dt
print("%s: end, dt: %d ms", thread.running(), dt)