diff options
author | ubq323 <ubq323@ubq323.website> | 2025-02-25 23:43:41 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-02-25 23:43:41 +0000 |
commit | 4dec20e4ff11b61be57a6cfbdb289327d9e1eb7d (patch) | |
tree | cc2ffe0357c1110236270ad46dc2006cdb01bf89 /test.lua | |
parent | e03937bbe51f3dd8e0d8ecc732999f5c4578fa94 (diff) |
the Restructuring
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 24 |
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()) |