Adds a new thread to the list. This function must not be called after starting the scheduling. The priority of the task depends on the order of the adding of the threads. The first function has the highest, the last the lowest priority.
- See also
- threadStart
- Parameters
-
f | pointer to the thread function |
pArgument | this parameter is delivered to the thread function at every call. Typically it would be a pointer to struct with parameters and/or a pointer to a struct holding the static data of the function. (You should avoid using static variables in function used for a thread) |
periodTicks | number of ticks between to calls. You should use ' [period in ms]/THREAD_MS_PER_TICK' here. |
- Returns
- NULL if the list was already full, not NULL if the task was successfully added.