[−][src]Struct basic_dsp_vector::MultiCoreSettings
Holds parameters which specify how multiple cores are used to execute an operation.
Fields
core_limit: usize
All operations will be limited to not create more threads than specified here
med_dual_core_threshold: usize
med_multi_core_threshold: usize
large_dual_core_threshold: usize
large_multi_core_threshold: usize
Methods
impl MultiCoreSettings
[src]
pub fn default() -> MultiCoreSettings
[src]
Creates multi core settings with default values
pub fn single_threaded() -> MultiCoreSettings
[src]
Creates multi core settings so that no thread will be spawned.
pub fn parallel() -> MultiCoreSettings
[src]
Creates multi core so that threads will be spawned if this appears to be beneficial.
pub fn new(core_limit: usize) -> MultiCoreSettings
[src]
Creates multi core settings with the given values.
If core_limit > 1
then the first time this function is executed a calibration run
will be performed which determines the details for the multi threading strategy. This
run takes between 200ms and 500ms.
pub fn with_thresholds(
core_limit: usize,
med_dual_core_threshold: usize,
med_multi_core_threshold: usize,
large_dual_core_threshold: usize,
large_multi_core_threshold: usize
) -> MultiCoreSettings
[src]
core_limit: usize,
med_dual_core_threshold: usize,
med_multi_core_threshold: usize,
large_dual_core_threshold: usize,
large_multi_core_threshold: usize
) -> MultiCoreSettings
Creates multi core settings with explicit thresholds.
The arguments allow to specify the number of cores which are used at maximum and as
well as starting from which slice size the lib will start to use two or all cores.
med
denotes operations of medium complexity, e.g. such as log and sin.
large
denotes operations like convolution and interpolation.
Trait Implementations
impl Copy for MultiCoreSettings
[src]
impl Clone for MultiCoreSettings
[src]
fn clone(&self) -> MultiCoreSettings
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MultiCoreSettings
[src]
Auto Trait Implementations
impl Send for MultiCoreSettings
impl Sync for MultiCoreSettings
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.