Struct ispc::task::Group

source · []
pub struct Group {
    pub total: (i32, i32, i32),
    pub fcn: extern "C" fn(*mut c_void, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32),
    pub data: AtomicPtr<c_void>,
    /* private fields */
}
Expand description

A group of tasks spawned by a call to launch in ISPC

Fields

total: (i32, i32, i32)

Total number of tasks scheduled in this group

fcn: extern "C" fn(*mut c_void, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32)

Function to run for this task

data: AtomicPtr<c_void>

Data pointer to user params to pass to the function

Implementations

Create a new task group for execution of the function

Get an iterator over chunk_size chunks of tasks to be executed for this group

Check if all tasks for this group have been completed

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.