thread::Sched
- Inherits: api::ExecutionContext
public - thread::Sched::SetScheduler
Types
Policy#
- round_robin
- fifo
- other
Functions
set_scheduler(const SetScheduler &options) const#
const Sched & thread::Sched::set_scheduler (const SetScheduler &options) constType: const Sched &
Parameters:
- const SetScheduler &
options
yield() const#
inline
const Sched & thread::Sched::yield () constType: 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_tpid
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_tpid