NAME DeleteTask -- delete a task created with createtask() SYNOPSIS DeleteTask(task) VOID DeleteTask(struct task *); FUNCTION This function simply calls exec.library/remtask(), deleting a task from the Exec task lists and automatically freeing any stack and structure memory allocated for it by createtask(). Before deleting a task, you must first make sure that the task is not currently executing any system code which might try to signal the task after it is gone. This can be accomplished by stopping all sources that might reference the doomed task, then causing the subtask to execute a Wait(0L). Another option is to have the task call deletetask()/remtask() on itself. INPUTS task - task to remove from the system NOTE This function simply calls exec.library/remtask(), so you can call remtask() directly instead of calling this function. SEE ALSO createtask(), exec.library/remtask()