summaryrefslogtreecommitdiff
path: root/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua24
1 files changed, 0 insertions, 24 deletions
diff --git a/test.lua b/test.lua
deleted file mode 100644
index d70f7f2..0000000
--- a/test.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-local cqueues = require'cqueues'
-local condition = require'cqueues.condition'
-
-local cv = condition.new()
-local function task1()
- while true do
- print('1 top')
- cv:wait()
- print('1 waited')
- end
-end
-local function task2()
- while true do
- print('2 top')
- cv:signal()
- print('2 signalled')
- cqueues.poll()
- end
-end
-
-local cq = cqueues.new()
-cq:wrap(task1)
-cq:wrap(task2)
-print(cq:loop())