starpu_worker_collection

Struct starpu_worker_collection 

Source
#[repr(C)]
pub struct starpu_worker_collection {
Show 19 fields pub workerids: *mut c_int, pub collection_private: *mut c_void, pub nworkers: c_uint, pub unblocked_workers: *mut c_void, pub nunblocked_workers: c_uint, pub masters: *mut c_void, pub nmasters: c_uint, pub present: [c_char; 48], pub is_unblocked: [c_char; 48], pub is_master: [c_char; 48], pub type_: starpu_worker_collection_type, pub has_next: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator) -> c_uint>, pub get_next: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator) -> c_int>, pub add: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, worker: c_int) -> c_int>, pub remove: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, worker: c_int) -> c_int>, pub init: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection)>, pub deinit: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection)>, pub init_iterator: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator)>, pub init_iterator_for_parallel_tasks: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator, task: *mut starpu_task)>,
}
Expand description

A scheduling context manages a collection of workers that can be memorized using different data structures. Thus, a generic structure is available in order to simplify the choice of its type. Only the list data structure is available but further data structures(like tree) implementations are foreseen.

Fields§

§workerids: *mut c_int

The workerids managed by the collection

§collection_private: *mut c_void§nworkers: c_uint

The number of workers in the collection

§unblocked_workers: *mut c_void§nunblocked_workers: c_uint§masters: *mut c_void§nmasters: c_uint§present: [c_char; 48]§is_unblocked: [c_char; 48]§is_master: [c_char; 48]§type_: starpu_worker_collection_type

The type of structure

§has_next: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator) -> c_uint>

Check if there is another element in collection

§get_next: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator) -> c_int>

Return the next element in the collection

§add: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, worker: c_int) -> c_int>

Add a new element in the collection

§remove: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, worker: c_int) -> c_int>

Remove an element from the collection

§init: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection)>

Initialize the collection

§deinit: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection)>

Deinitialize the collection

§init_iterator: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator)>

Initialize the cursor if there is one

§init_iterator_for_parallel_tasks: Option<unsafe extern "C" fn(workers: *mut starpu_worker_collection, it: *mut starpu_sched_ctx_iterator, task: *mut starpu_task)>

Trait Implementations§

Source§

impl Clone for starpu_worker_collection

Source§

fn clone(&self) -> starpu_worker_collection

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for starpu_worker_collection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for starpu_worker_collection

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for starpu_worker_collection

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.