Home

Thread

Abstracts native system thread execution

Operations

New

Name of the thread

New(name:String)
Parameters
NameTypeDescription
nameStringname of the thread

Execute

Called to execute a new thread

method : public : Execute(param:Base) ~ Nil
Parameters
NameTypeDescription
paramBaseparameter to be passed into the newly executing thread

GetExecuteID

Returns a unique execution ID

method : public : GetExecuteID() ~ Int

GetName

Returns the thread's name

method : public : GetName() ~ String

Join

Joins the executing thread with the caller

method : public : Join() ~ Nil

Run

Prototype for the thread to be executed

method : public : virutal : Run(param:Base) ~ Nil
Parameters
NameTypeDescription
paramBaseparameter to be passed into the thread

Sleep

Sleeps the executing thread

function : public : Sleep(t:Int) ~ Nil
Parameters
NameTypeDescription
tIntsleep time in milliseconds