summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/status.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Fix undefined behaviourSebastian Huber2016-08-181-1/+1
| | | | | Cast POSIX error codes to unsigned int to avoid undefined behaviour in case of PTHREAD_BARRIER_SERIAL_THREAD which is -1.
* rtems: Fix rtems_task_set_scheduler() APISebastian Huber2016-07-011-0/+2
| | | | | | | | | | | Task priorities are only valid within a scheduler instance. The rtems_task_set_scheduler() directive moves a task from one scheduler instance to another using the current priority of the thread. However, the current task priority of the source scheduler instance is undefined in the target scheduler instance. Add a third parameter to specify the priority. Close #2749.
* score: Introduce map priority scheduler operationSebastian Huber2016-06-221-0/+3
| | | | | | | | | | | Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556.
* rtems: Rework RTEMS API to SuperCore prioritySebastian Huber2016-06-221-0/+2
| | | | | Use same structure as POSIX API for thread priority conversion to/from SuperCore.
* score: Add Status_Control for all APIsSebastian Huber2016-05-261-0/+129
Unify the status codes of the Classic and POSIX API to use the new enum Status_Control. This eliminates the Thread_Control::Wait::timeout_code field and the timeout parameter of _Thread_queue_Enqueue_critical() and _MPCI_Send_request_packet(). It gets rid of the status code translation tables and instead uses simple bit operations to get the status for a particular API. This enables translation of status code constants at compile time. Add _Thread_Wait_get_status() to avoid direct access of thread internal data structures.