[][src]Struct emu_core::spawn::Spawner

pub struct Spawner { /* fields omitted */ }

A "builder" for a space of threads that are to be spawned

See spawn for more details.

Methods

impl Spawner[src]

pub fn spawn(self, num_threads: u32) -> Self[src]

Adds a new dimension to the space of threads with size determined by the given number of threads

pub unsafe fn launch<'a>(
    &self,
    device_fn_mut_with_args: (Arc<DeviceFnMut>, DeviceFnMutArgs<'a>)
) -> Result<(), LaunchError>
[src]

Launches given DeviceFnMut with given arguments on the space of threads built so far

You can provide the arguments using ArgsBuilder or using the call macro.

Auto Trait Implementations

impl RefUnwindSafe for Spawner

impl Send for Spawner

impl Sync for Spawner

impl Unpin for Spawner

impl UnwindSafe for Spawner

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> AsDeviceBoxed<T> for U where
    T: AsBytes + ?Sized,
    U: Borrow<T>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.