[][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.


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>(
    device_fn_mut_with_args: (Arc<DeviceFnMut>, DeviceFnMutArgs<'a>)
) -> Result<(), LaunchError>

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.