pub struct ThreadSchedulingConfig {
pub strategy: SchedulingStrategy,
pub preempt_probability: f64,
}Expand description
Thread scheduling configuration for deterministic thread interleaving.
Controls how the ptrace supervisor schedules threads when multiple are runnable. Only effective in Layer 2 (ptrace interceptor).
Fields§
§strategy: SchedulingStrategyScheduling strategy for choosing which thread to run next.
preempt_probability: f64Probability of preempting a thread at each syscall boundary [0.0, 1.0]. Higher values explore more interleavings but increase overhead.
Implementations§
Source§impl ThreadSchedulingConfig
impl ThreadSchedulingConfig
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if deterministic thread scheduling is enabled.
Trait Implementations§
Source§impl Clone for ThreadSchedulingConfig
impl Clone for ThreadSchedulingConfig
Source§fn clone(&self) -> ThreadSchedulingConfig
fn clone(&self) -> ThreadSchedulingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadSchedulingConfig
impl Debug for ThreadSchedulingConfig
Source§impl Default for ThreadSchedulingConfig
impl Default for ThreadSchedulingConfig
Source§impl<'de> Deserialize<'de> for ThreadSchedulingConfig
impl<'de> Deserialize<'de> for ThreadSchedulingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreadSchedulingConfig
impl PartialEq for ThreadSchedulingConfig
Source§impl Serialize for ThreadSchedulingConfig
impl Serialize for ThreadSchedulingConfig
impl StructuralPartialEq for ThreadSchedulingConfig
Auto Trait Implementations§
impl Freeze for ThreadSchedulingConfig
impl RefUnwindSafe for ThreadSchedulingConfig
impl Send for ThreadSchedulingConfig
impl Sync for ThreadSchedulingConfig
impl Unpin for ThreadSchedulingConfig
impl UnsafeUnpin for ThreadSchedulingConfig
impl UnwindSafe for ThreadSchedulingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more