Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPeriodic_Construct ( kPeriodic timer,
const kChar name,
kThreadPriorityClass  priorityClass,
k32s  priorityOffset,
kAlloc  allocator 
)

Constructs a kPeriodic object with additional options.

Unique names should be assigned to threads in order to aid debugging. Note that some operating systems restrict name lengths to only a few characters (e.g., Linux: 16).

Refer to kThread_SetPriority for information about thread priorities.

Parameters
timerReceives a handle to the constructed object.
nameDescriptive name for the thread (kNULL for default).
priorityClassThread priority class (Low, Normal, High).
priorityOffsetSigned priority offset; a higher offset represents a higher priority within class.
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.
See also
kThread_SetPriority