DUNE: Uniform Navigational Environment
2016.05.0
|
Class to manage the default scheduling policy.
Public Types | |
enum | Policy { POLICY_FIFO, POLICY_RR, POLICY_OTHER } |
Static Public Member Functions | |
static void | set (Policy policy) |
static Policy | get (void) |
static unsigned | native (void) |
static unsigned | native (Policy policy) |
static void | yield (void) |
static unsigned | minimumPriority (void) |
static unsigned | maximumPriority (void) |
|
static |
Get default scheduling policy.
|
static |
Get the maximum priority value for current default scheduling policy.
References native().
|
static |
Get the minimum priority value for current default scheduling policy.
References native().
|
static |
Get the native scheduling policy identifier.
Referenced by maximumPriority(), minimumPriority(), and DUNE::Concurrency::Thread::setPriorityImpl().
|
static |
Translate a DUNE scheduling policy to a native scheduling policy identifier.
policy | scheduling policy. |
References POLICY_FIFO, POLICY_OTHER, and POLICY_RR.
|
static |
Set default scheduling policy.
policy | scheduling policy. |
|
static |
Force the running thread to relinquish the processor until it becomes the head of its thread list.
Referenced by DUNE::Network::TCPSocket::writeFile().