Version 2 of thread::create

Updated 2012-10-26 00:34:10 by RLE
thread::create ?-joinable? ?-preserved? ?script?

Creates an interpreter in another thread. That interpreter will have the thread package pre-loaded into it, and will be the master interpreter for that thread. If supplied, script will be evaluated within the new interpreter; otherwise a default script (containing just thread::wait) will be used.

Returns the ID (as in thread::id) of the newly created thread.


[TODO: Document the -joinable and -preserved options.]