Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kThread_Start ( kThread  thread,
kThreadFx  function,
kPointer  context 
)

Begins executing a thread using the specified callback function.

Note: This Start overload does not set the thread name. Setting the thread name is recommended for debugging. Accordingly, is it recommended to call kThread_SetName before calling this overload, or to use a different overload that includes the thread name.

Parameters
threadThread object.
functionThe thread entry function.
contextAn argument to be passed to the thread entry function.
Returns
Operation status.