aboutsummaryrefslogtreecommitdiff
path: root/tests/h.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/h.lua')
-rw-r--r--tests/h.lua14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/h.lua b/tests/h.lua
index b8ccd13..c96e98e 100644
--- a/tests/h.lua
+++ b/tests/h.lua
@@ -1,8 +1,8 @@
require "llib"
llib.thread.lock(1)
-llib.thread.lock(2)
-llib.thread.unlock(2)
+--llib.thread.lock(2)
+--llib.thread.unlock(2)
local thread_a = llib.thread.async(function (res)
--os.execute("sleep 1")
@@ -10,21 +10,19 @@ local thread_a = llib.thread.async(function (res)
print("waiting..")
llib.thread.lock(1)
print("signal!")
- res(_G.llib.crypto.md5())
+ res()
print("after")
end)
os.execute("sleep 1")
+print("unlock")
llib.thread.unlock(1)
+
awa = thread_a:await()
+--print((awa + "hi"):final())
os.execute("sleep 1")
-for i=1,999 do
-print((awa + "hi"):final())
-end
-
thread_a:clean()
print("clean exit")
-