Struct oxygengine_core::ecs::prelude::Dispatcher [−][src]
pub struct Dispatcher<'a, 'b> { /* fields omitted */ }
Expand description
The dispatcher struct, allowing systems to be executed in parallel.
Implementations
Sets up all the systems which means they are gonna add default values for the resources they need.
Calls the dispose
method of all systems and allows them to release
external resources. It is common this method removes components and
/ or resources from the World
which are associated with external
resources.
Dispatch all the systems with given resources and context and then run thread local systems.
This function automatically redirects to
- [Dispatcher::dispatch_par] in case it is supported
- Dispatcher::dispatch_seq otherwise
and runs dispatch_thread_local
afterwards.
Please note that this method assumes that no resource is currently borrowed. If that’s the case, it panics.
Dispatches the systems (except thread local systems) sequentially.
This is useful if parallel overhead is too big or the platform does not support multithreading.
Please note that this method assumes that no resource is currently borrowed. If that’s the case, it panics.
Dispatch only thread local systems sequentially.
Please note that this method assumes that no resource is currently borrowed. If that’s the case, it panics.
Trait Implementations
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for Dispatcher<'a, 'b>
impl<'a, 'b> !Send for Dispatcher<'a, 'b>
impl<'a, 'b> !Sync for Dispatcher<'a, 'b>
impl<'a, 'b> Unpin for Dispatcher<'a, 'b>
impl<'a, 'b> !UnwindSafe for Dispatcher<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more