pub struct DelegatingExecutor { /* private fields */ }Expand description
委托执行器:一个线程都不拥有,把就绪节点交还宿主线程跑。
submit 只入队,真正执行发生在宿主进入阻塞接口或主动调用 Graph::pump_step 时。
同一张图的委托任务由图级原子闸门保证零并发。
Implementations§
Auto Trait Implementations§
impl !Freeze for DelegatingExecutor
impl RefUnwindSafe for DelegatingExecutor
impl Send for DelegatingExecutor
impl Sync for DelegatingExecutor
impl Unpin for DelegatingExecutor
impl UnsafeUnpin for DelegatingExecutor
impl UnwindSafe for DelegatingExecutor
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