[−][src]Struct emu_core::spawn::Spawner
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]
&self,
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,
[src]
T: 'static + ?Sized,
impl<T, U> AsDeviceBoxed<T> for U where
T: AsBytes + ?Sized,
U: Borrow<T>,
[src]
T: AsBytes + ?Sized,
U: Borrow<T>,
fn as_device_boxed(&Self) -> Result<DeviceBox<T>, NoDeviceError>
[src]
fn as_device_boxed_mut(&Self) -> Result<DeviceBox<T>, NoDeviceError>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,