thread::Sched
- Inherits: api::ExecutionContext
public
- thread::Sched::SetScheduler
Types
#
Policy- round_robin
- fifo
- other
Functions
#
set_scheduler(const SetScheduler &options) constconst Sched & thread::Sched::set_scheduler (const SetScheduler &options) const
Type: const Sched &
Parameters:
- const SetScheduler &
options
#
yield() constinline
const Sched & thread::Sched::yield () const
Type: const Sched &
Static Functions
#
get_pid()inline
static pid_t thread::Sched::get_pid ()
Type: pid_t
#
get_priority(pid_t pid)static int thread::Sched::get_priority (pid_t pid)
Type: int
Parameters:
pid_t
pid
#
get_priority_max(Policy value)static int thread::Sched::get_priority_max (Policy value)
Type: int
Parameters:
- Policy
value
#
get_priority_min(Policy value)static int thread::Sched::get_priority_min (Policy value)
Type: int
Parameters:
- Policy
value
#
get_rr_interval(pid_t pid)static int thread::Sched::get_rr_interval (pid_t pid)
Type: int
Parameters:
pid_t
pid