Versions Compared

Key

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

...

  • task_delete() deletes (cancels) a task.
  • task_setcancelstate() can be used to enable or disable task cancellation.
  • task_setcanceltype() can be used to switched between asynchronous and deferred task cancellation.
  • task_testcancel() can be used to force a cancellation point.

Design Issues

NOTE:  The issue address in this paragraph has been corrected in the code base through a series of changes culiminating int PR 733.  This discussion still has value, however, as a warning for things that one needs to take into consideration when designing logic within the OS.

There is one logical problem in many parts of the system. The following sequence of code appears in many places in the code base. It will work not work with thread/task cancellation:

...