summaryrefslogtreecommitdiff
path: root/tests/modules/thread/mutex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/thread/mutex.lua')
-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)