Typos in readme and example file
This commit is contained in:
parent
f072c2cfde
commit
5edea3a6a4
@ -21,12 +21,12 @@ multi:newSystemThread("test",function() -- spawns a thread in another lua proces
|
|||||||
print("Waiting for variable: NumOfCores")
|
print("Waiting for variable: NumOfCores")
|
||||||
print("Got it: ",lthread.waitFor("NumOfCores"))
|
print("Got it: ",lthread.waitFor("NumOfCores"))
|
||||||
lthread.hold(function()
|
lthread.hold(function()
|
||||||
return GLOBAL["AnotherTest"] -- note this would hold the entire lthread. Spawn a coroutine thread using multi:newThread() or multi:newThreaded...
|
return GLOBAL["AnotherTest"] -- note this would hold the entire systemthread. Spawn a coroutine thread using multi:newThread() or multi:newThreaded...
|
||||||
end)
|
end)
|
||||||
print("Holding works!")
|
print("Holding works!")
|
||||||
multi:newThread("tests",function()
|
multi:newThread("tests",function()
|
||||||
thread.hold(function()
|
thread.hold(function()
|
||||||
return GLOBAL["FinalTest"] -- note this will hold the entire lthread. As seen with the TLoop constantly going!
|
return GLOBAL["FinalTest"] -- note this will not hold the entire systemthread. As seen with the TLoop constantly going!
|
||||||
end)
|
end)
|
||||||
print("Final test works!")
|
print("Final test works!")
|
||||||
os.exit()
|
os.exit()
|
||||||
|
|||||||
@ -17,12 +17,12 @@ multi:newSystemThread("test",function() -- spawns a thread in another lua proces
|
|||||||
print("Waiting for variable: NumOfCores")
|
print("Waiting for variable: NumOfCores")
|
||||||
print("Got it: ",lthread.waitFor("NumOfCores"))
|
print("Got it: ",lthread.waitFor("NumOfCores"))
|
||||||
lthread.hold(function()
|
lthread.hold(function()
|
||||||
return GLOBAL["AnotherTest"] -- note this would hold the entire lthread. Spawn a coroutine thread using multi:newThread() or multi:newThreaded...
|
return GLOBAL["AnotherTest"] -- note this would hold the entire systemthread. Spawn a coroutine thread using multi:newThread() or multi:newThreaded...
|
||||||
end)
|
end)
|
||||||
print("Holding works!")
|
print("Holding works!")
|
||||||
multi:newThread("tests",function()
|
multi:newThread("tests",function()
|
||||||
thread.hold(function()
|
thread.hold(function()
|
||||||
return GLOBAL["FinalTest"] -- note this will hold the entire lthread. As seen with the TLoop constantly going!
|
return GLOBAL["FinalTest"] -- note this will not hold the entire systemthread. As seen with the TLoop constantly going!
|
||||||
end)
|
end)
|
||||||
print("Final test works!")
|
print("Final test works!")
|
||||||
os.exit()
|
os.exit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user