RemTask(task)
void RemTask(struct Task *);
This function removes a Task from the system. Deallocation of resources should have been performed prior to calling this function. Removing some other Task is very dangerous. Generally, is is best to arrange for Tasks to call RemTask(NULL) on themselves.
RemTask() will automagically free any memory lists attached to the Task->tc_MemEntry list.
Before Kickstart 2.0 (V36) if RemTask() was called on a Task other than the current task, and that task was created with
amiga.lib/CreateTask(), there was a slight chance of a crash. The problem can be hidden by bracketing RemTask() with
Forbid()/
Permit().