This way the users know when it's safe to free the memory
containing the task struct.
#define SCHED_ERRORS \
PARA_ERROR(TASK_KILLED, "task killed"), \
+ PARA_ERROR(TASK_UNREGISTERED, "task has been unscheduled"), \
PARA_ERROR(NO_SUCH_TASK, "task not found"), \
PARA_ERROR(NOT_INITIALIZED, "scheduler not yet initialized"), \
list_del(&t->pre_select_node);
if (t->post_select)
list_del(&t->post_select_node);
- if (t->error >= 0)
- t->error = -E_TASK_KILLED;
+ t->error = -E_TASK_UNREGISTERED;
};