#[repr(C)]pub struct JobSystemApi {
pub run_jobs: Option<unsafe extern "C" fn(jobs: *mut JobdeclT, num_jobs: u32) -> *mut AtomicCounterO>,
pub run_jobs_and_auto_free_counter: Option<unsafe extern "C" fn(jobs: *mut JobdeclT, num_jobs: u32)>,
pub wait_for_counter: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO, value: u32)>,
pub wait_for_counter_and_free: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO)>,
pub wait_for_counter_and_free_no_fiber: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO)>,
pub pin_thread_handle: Option<unsafe extern "C" fn(worker_thread_index: u32) -> u32>,
pub num_worker_threads: Option<unsafe extern "C" fn() -> u32>,
}
Fields§
§run_jobs: Option<unsafe extern "C" fn(jobs: *mut JobdeclT, num_jobs: u32) -> *mut AtomicCounterO>
§run_jobs_and_auto_free_counter: Option<unsafe extern "C" fn(jobs: *mut JobdeclT, num_jobs: u32)>
§wait_for_counter: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO, value: u32)>
§wait_for_counter_and_free: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO)>
§wait_for_counter_and_free_no_fiber: Option<unsafe extern "C" fn(counter: *mut AtomicCounterO)>
§pin_thread_handle: Option<unsafe extern "C" fn(worker_thread_index: u32) -> u32>
§num_worker_threads: Option<unsafe extern "C" fn() -> u32>
Implementations§
Source§impl JobSystemApi
impl JobSystemApi
pub unsafe fn run_jobs( &self, jobs: *mut JobdeclT, num_jobs: u32, ) -> *mut AtomicCounterO
pub unsafe fn run_jobs_and_auto_free_counter( &self, jobs: *mut JobdeclT, num_jobs: u32, )
pub unsafe fn wait_for_counter(&self, counter: *mut AtomicCounterO, value: u32)
pub unsafe fn wait_for_counter_and_free(&self, counter: *mut AtomicCounterO)
pub unsafe fn wait_for_counter_and_free_no_fiber( &self, counter: *mut AtomicCounterO, )
pub unsafe fn pin_thread_handle(&self, worker_thread_index: u32) -> u32
pub unsafe fn num_worker_threads(&self) -> u32
Trait Implementations§
Source§impl Clone for JobSystemApi
impl Clone for JobSystemApi
Source§fn clone(&self) -> JobSystemApi
fn clone(&self) -> JobSystemApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for JobSystemApi
impl Default for JobSystemApi
Source§fn default() -> JobSystemApi
fn default() -> JobSystemApi
Returns the “default value” for a type. Read more
impl Copy for JobSystemApi
Auto Trait Implementations§
impl Freeze for JobSystemApi
impl RefUnwindSafe for JobSystemApi
impl Send for JobSystemApi
impl Sync for JobSystemApi
impl Unpin for JobSystemApi
impl UnwindSafe for JobSystemApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more