reference monoe.system.threading

Lua API Reference

Allows multi-threading.

Properties

NameTypeDescription
uidinteger
endsigstring

monoe.system.threading.new

Creates a new managed thread

Parameters

NameTypeDescription
sourcestringFile path or lua code
entrystringMain function's name
finishedstringEvent name, the one that'll be called once the thread finished its task.
libsbooleanTrue if the thread should open Lua's standard libraries.

Returns


monoe.system.threading:start

Starts the thread with the given set of arguments.


monoe.system.threading:terminate

Returns true if the thread is joined after this call.

Returns


monoe.system.threading:finished


monoe.system.threading:free