pub struct JobSystem { /* private fields */ }
Expand description
Work Stealing JobSystem.
Implementations§
Source§impl JobSystem
impl JobSystem
Sourcepub fn new(thread_count: usize, job_capacity: usize) -> Result<Self, Error>
pub fn new(thread_count: usize, job_capacity: usize) -> Result<Self, Error>
Create a new instance of a JobSystem. To create jobs, please create a new instance of a JobScope.
thread_count
- Number of worker threads.job_capacity
- Maximum number of jobs the system can allocate. If this is not a power of 2 it will be rounded up to the next value which is a power of 2.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobSystem
impl !RefUnwindSafe for JobSystem
impl Send for JobSystem
impl Sync for JobSystem
impl Unpin for JobSystem
impl !UnwindSafe for JobSystem
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