Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the previous chapter section, I specified that a task is either an infinite loop function or a function that deletes itself when it is done executing. Note that the task code is not actually deleted — µC/OS-II simply doesn’t know about the task anymore, so that code will not run. A task looks just like any other C function, containing a return type and an argument, but it must never return. The return type of a task must always be declared void. The functions described in this chapter are found in the file OS_TASK.C. To review, a task must have one of the two structures:

...