createthread[,threadcreate,newthread,threadnew]

Create a new thread at the specified entry.

arguments

arg1 The entry of the new thread.

[arg2] The argument of the new thread. If the argument is not specified, the default argument is 0.

results

$result will be set to the thread id of the new thread.