[−][src]Struct ispc::exec::Parallel
A multithreaded execution environment for the tasks launched in ISPC
Methods
impl Parallel
[src]
pub fn new() -> Arc<Parallel>
[src]
Create a parallel task execution environment that will use num_cpus
threads
to run tasks.
pub fn oversubscribed(oversubscribe: f32) -> Arc<Parallel>
[src]
Create an oversubscribued parallel task execution environment that will use
oversubscribe * num_cpus
threads to run tasks.
Trait Implementations
impl TaskSystem for Parallel
[src]
unsafe fn alloc(
&self,
handle_ptr: *mut *mut c_void,
size: i64,
align: i32
) -> *mut c_void
[src]
&self,
handle_ptr: *mut *mut c_void,
size: i64,
align: i32
) -> *mut c_void
unsafe fn launch(
&self,
handle_ptr: *mut *mut c_void,
f: extern "C" fn(*mut c_void, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32),
data: *mut c_void,
count0: i32,
count1: i32,
count2: i32
)
[src]
&self,
handle_ptr: *mut *mut c_void,
f: extern "C" fn(*mut c_void, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32),
data: *mut c_void,
count0: i32,
count1: i32,
count2: i32
)
unsafe fn sync(&self, handle: *mut c_void)
[src]
Auto Trait Implementations
impl Unpin for Parallel
impl Sync for Parallel
impl Send for Parallel
impl UnwindSafe for Parallel
impl RefUnwindSafe for Parallel
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,