mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 05:30:24 +00:00
Merge pull request #816 from sched-ext/rustland-core-update-doc
scx_rustland_core: update documentation about the new API
This commit is contained in:
commit
d336892c71
@ -105,6 +105,9 @@ impl<'a> Scheduler<'a> {
|
||||
// pub cpu: i32, // CPU where the task is running
|
||||
// pub sum_exec_runtime: u64, // Total cpu time
|
||||
// pub weight: u64, // Task static priority
|
||||
// pub nvcsw: u64, // Total amount of voluntary context switches
|
||||
// pub slice: u64, // Remaining time slice budget
|
||||
// pub vtime: u64, // Current task vruntime / deadline (set by the scheduler)
|
||||
// }
|
||||
//
|
||||
// Although the FIFO scheduler doesn't use these fields, they can provide valuable data for
|
||||
|
@ -47,6 +47,9 @@
|
||||
//! pub flags: u64, // task's enqueue flags
|
||||
//! pub sum_exec_runtime: u64, // Total cpu time in nanoseconds
|
||||
//! pub weight: u64, // Task priority in the range [1..10000] (default is 100)
|
||||
//! pub nvcsw: u64, // Total amount of voluntary context switches
|
||||
//! pub slice: u64, // Remaining time slice budget
|
||||
//! pub vtime: u64, // Current task vruntime / deadline (set by the scheduler)
|
||||
//! }
|
||||
//!
|
||||
//! Each task dispatched using dispatch_task() contains the following:
|
||||
|
Loading…
Reference in New Issue
Block a user