Gentee Programming Language > Documentation > Libraries Download documentation

thread.create

Create a thread.
 
uint thread.create(
      uint   idfunc,
      uint   param
)

Parameters

idfuncThe pointer to the function that will be called as a new thread. The function must have one parameter. You can get the pointer using the operator &.
paramAdditional parameter.

Return value

The handle of the created thread is returned. It returns 0 in case of an error.

See also

    Threads


 Copyright © 2004-2006 Gentee Inc. All rights reserved.