typedef enum { CTL_ERROR_NO_TASKS_TO_RUN, CTL_UNSUPPORTED_CALL_FROM_ISR, CTL_MUTEX_UNLOCK_CALL_ERROR, CTL_UNSPECIFIED_ERROR, CTL_STACK_OVERFLOW } CTL_ERROR_CODE_t;
CTL_ERROR_CODE_t defines the set of errors that are detected by the CrossWorks tasking library; the errors are reported by a call to ctl_handle_error.
Constant | Description |
CTL_ERROR_NO_TASKS_TO_RUN | A reschedule has occurred but there are no tasks which are runnable. |
CTL_UNSUPPORTED_CALL_FROM_ISR | An interrupt service routine has called a tasking library function that could block or is otherwise unsupported when called from inside an interrupt service routine. |
CTL_MUTEX_UNLOCK_CALL_ERROR | A task called ctl_mutex_unlock passing a mutex which it has not locked, or which a different task holds a lock on. Only the task that successfully acquired a lock on a mutex can unlock that mutex. |
CTL_STACK_OVERFLOW | Inusufficient space to save the CPU register state to the stack of ctL_currently_executing_task |
CTL_UNSPECIFIED_ERROR | An unspecified error has occurred. |