diff options
author | David Walter Seikel | 2014-04-21 20:59:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-04-21 20:59:39 +1000 |
commit | 9621add2918cc4943e6693b74ae85d51dd264fcf (patch) | |
tree | fff1edf2c69d7a08a0e12885eecc9b96ed847a6a /LuaSL/testLua/luaprocTest1_C.lua | |
parent | LuaSL_test's window doesn't need to be so huge. (diff) | |
download | SledjHamr-9621add2918cc4943e6693b74ae85d51dd264fcf.zip SledjHamr-9621add2918cc4943e6693b74ae85d51dd264fcf.tar.gz SledjHamr-9621add2918cc4943e6693b74ae85d51dd264fcf.tar.bz2 SledjHamr-9621add2918cc4943e6693b74ae85d51dd264fcf.tar.xz |
We don't need the testlua directory any more.
Diffstat (limited to 'LuaSL/testLua/luaprocTest1_C.lua')
-rw-r--r-- | LuaSL/testLua/luaprocTest1_C.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/LuaSL/testLua/luaprocTest1_C.lua b/LuaSL/testLua/luaprocTest1_C.lua deleted file mode 100644 index 61cb461..0000000 --- a/LuaSL/testLua/luaprocTest1_C.lua +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | result, error_msg = luaproc.newproc( [=[ | ||
2 | |||
3 | local count = 0 | ||
4 | |||
5 | -- Hmm, luajit 2 beta 9 crashes at about 8140, lua can go up to 50000 at least. | ||
6 | for i = 1, 8000 do | ||
7 | local channel = "channel" .. i | ||
8 | -- local proc = 'print(luaproc.receive("channel' .. i .. '") .. " " .. ' .. i ..')' | ||
9 | local proc = 'luaproc.receive("' .. channel .. '")' | ||
10 | |||
11 | -- print(channel .. "\n" .. proc) | ||
12 | result, error_msg = luaproc.newchannel(channel) | ||
13 | if not result then print(error_msg) end | ||
14 | result, error_msg = luaproc.newproc(proc) | ||
15 | if not result then print(error_msg) else count = count + 1 end | ||
16 | end | ||
17 | |||
18 | print("Started " .. count .. " Lua threads") | ||
19 | |||
20 | if 0 ~= count then | ||
21 | for i = 1, count do | ||
22 | result, error_msg = luaproc.send("channel" .. i, 'luaproc is working fine! ' .. i) | ||
23 | if not result then print(error_msg .. " " .. i) end | ||
24 | end | ||
25 | end | ||
26 | ]=] ) | ||
27 | if not result then print(error_msg .. " for main proc") end | ||
28 | |||