Name spwan
Definition spawn(e:expr(void),fpnum:val(int)):expr(int)
Defined in ctrl.l
Implementation icode
Description Evaluate expression e in a new concurrent thread. forparnum will return the value given by fpnum in the new thread. The thread identifier for the new thread is returned.
Note Most code should use forpar and | rather than spawn. The caller must not allow any variables that the spawned thread may access to be deallocated before the spawned thread is known to have completed.