#[repr(C)]pub enum ProcBind {
Master = 0,
Close = 1,
Spread = 2,
Primary = 3,
}
Expand description
Thread affinity policy
Specifies how threads are bound to processors.
§Examples
let pb = ProcBind::Close;
assert_eq!(pb.to_string(), "close");
Variants§
Master = 0
Threads execute close to the master thread
Close = 1
Threads execute close to the master thread (OpenMP 5.1 deprecates ‘master’)
Spread = 2
Threads spread out across available processors
Primary = 3
Implementation-defined binding
Trait Implementations§
impl Copy for ProcBind
impl Eq for ProcBind
impl StructuralPartialEq for ProcBind
Auto Trait Implementations§
impl Freeze for ProcBind
impl RefUnwindSafe for ProcBind
impl Send for ProcBind
impl Sync for ProcBind
impl Unpin for ProcBind
impl UnwindSafe for ProcBind
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