pub fn new(max_ticks: Ticks, always_switch: bool) -> Scheduler {
        Scheduler {
            session: Weak::new(),
            task_priority_set: Default::default(),
            task_round_robin_queue: Default::default(),
            current_: Default::default(),
            current_timeslice_end_: Default::default(),
            high_priority_only_intervals_refresh_time: Default::default(),
            high_priority_only_intervals_start: Default::default(),
            high_priority_only_intervals_duration: Default::default(),
            high_priority_only_intervals_period: Default::default(),
            priorities_refresh_time: Default::default(),
            max_ticks_: max_ticks,
            must_run_task: Default::default(),
            pretend_affinity_mask_: unsafe { mem::zeroed() },
            pretend_num_cores_: 1,
            always_switch,
            enable_chaos: Default::default(),
            enable_poll: Default::default(),
            last_reschedule_in_high_priority_only_interval: Default::default(),
        }
    }
/// DIFF This constructor does NOT call regenerate_affinity_mask() like in rr.
DIFF This constructor does NOT call regenerate_affinity_mask() like in rr.
DIFF This constructor does NOT call regenerate_affinity_mask () like in rr .
pub fn new(max_ticks: Ticks, always_switch: bool) -> Scheduler {
        Scheduler {
            session: Weak::new(),
            task_priority_set: Default::default(),
            task_round_robin_queue: Default::default(),
            current_: Default::default(),
            current_timeslice_end_: Default::default(),
            high_priority_only_intervals_refresh_time: Default::default(),
            high_priority_only_intervals_start: Default::default(),
            high_priority_only_intervals_duration: Default::default(),
            high_priority_only_intervals_period: Default::default(),
            priorities_refresh_time: Default::default(),
            max_ticks_: max_ticks,
            must_run_task: Default::default(),
            pretend_affinity_mask_: unsafe { mem::zeroed() },
            pretend_num_cores_: 1,
            always_switch,
            enable_chaos: Default::default(),
            enable_poll: Default::default(),
            last_reschedule_in_high_priority_only_interval: Default::default(),
        }
    }
pub fn new ( max_ticks : Ticks , always_switch : bool ) -> Scheduler { Scheduler { session : Weak :: new ( ) , task_priority_set : Default :: default ( ) , task_round_robin_queue : Default :: default ( ) , current_ : Default :: default ( ) , current_timeslice_end_ : Default :: default ( ) , high_priority_only_intervals_refresh_time : Default :: default ( ) , high_priority_only_intervals_start : Default :: default ( ) , high_priority_only_intervals_duration : Default :: default ( ) , high_priority_only_intervals_period : Default :: default ( ) , priorities_refresh_time : Default :: default ( ) , max_ticks_ : max_ticks , must_run_task : Default :: default ( ) , pretend_affinity_mask_ : unsafe { mem :: zeroed ( ) } , pretend_num_cores_ : 1 , always_switch , enable_chaos : Default :: default ( ) , enable_poll : Default :: default ( ) , last_reschedule_in_high_priority_only_interval : Default :: default ( ) , } }
DIFF This constructor does NOT call regenerate_affinity_mask() like in rr.
DIFF This constructor does NOT call regenerate_affinity_mask () like in rr .
max_ticks
Ticks
always_switch
bool