Anyway added some new objects, removed a few and wrote some more documentation... all thats left is system threads and network threads(nodes)
17 lines
316 B
Lua
17 lines
316 B
Lua
package.path="?/init.lua;?.lua;"..package.path
|
|
local multi = require("multi")
|
|
test = multi:newHyperThreadedProcess("test")
|
|
test:newLoop(function()
|
|
print("HI!")
|
|
end)
|
|
test:newLoop(function()
|
|
print("HI2!")
|
|
thread.sleep(.5)
|
|
end)
|
|
multi:newAlarm(3):OnRing(function()
|
|
test:Sleep(10)
|
|
end)
|
|
test:Start()
|
|
multi:mainloop()
|
|
|