\"\" \"\" \"\"
Go up to Basics
Go forward to Start(): Eager Thread Creation
RISC-Linz logo

Create(): Lazy Thread Creation

t = Threadn<R, A1, ..., An>::Create(f1, a1, ..., an)
      Threadn<R, A1, ..., An> t
      R (*f)(A1, ..., An)
      Ai ai

Specification: Returns a thread computing f(a1, ..., an).

Implementation: The thread is not yet activated but is put into the lazy stack.  

Note: If the preprocessor constant RT_THREAD_NOTLAZY is not set, above form is equivalent to

t = Threadn<R, A1, ..., An>(f1, a1, ..., an)

Author: Wolfgang Schreiner
Last Modification: April 12, 1997