multi/examples/lanesintergratetest6.lua
Ryan a414def307 Updated to version (1.8.2)
Added more example files
Added SystemThreadedTables
Some bug fixes
2017-06-30 11:04:27 -04:00

15 lines
462 B
Lua

-- lanes Desktop lua! NOTE: this is in lanesintergratetest6.lua in the examples folder
local GLOBAL,sThread=require("multi.intergration.lanesManager").init()
test=multi:newSystemThreadedTable("YO"):init()
test["test1"]="lol"
multi:newSystemThread("test",function()
tab=sThread.waitFor("YO"):init()
print(tab["test1"])
sThread.sleep(3)
tab["test2"]="Whats so funny?"
end)
multi:newThread("test2",function()
print(test:waitFor("test2"))
end)
multi:mainloop()