Zen API
|
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.
timer | Receives a handle to the constructed object. |
name | Descriptive name for the thread (kNULL for default). |
priorityClass | Thread priority class (Low, Normal, High). |
priorityOffset | Signed priority offset; a higher offset represents a higher priority within class. |
allocator | Memory allocator (or kNULL for default). |