mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
wip
This commit is contained in:
parent
464e59caab
commit
152d4fc899
@ -515,8 +515,7 @@ fn run(
|
|||||||
// the worker core is lost due to `block_in_place()` being called from
|
// the worker core is lost due to `block_in_place()` being called from
|
||||||
// within the task.
|
// within the task.
|
||||||
if !cx.defer.borrow().is_empty() {
|
if !cx.defer.borrow().is_empty() {
|
||||||
// cx.defer.wake();
|
worker.schedule_deferred_without_core(&cx, &mut cx.shared().synced.lock());
|
||||||
todo!()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -1213,6 +1212,7 @@ impl Worker {
|
|||||||
fn can_transition_to_parked(&self, cx: &Context, core: &mut Core) -> bool {
|
fn can_transition_to_parked(&self, cx: &Context, core: &mut Core) -> bool {
|
||||||
cx.shared().remotes[core.index].lifo_slot.is_none()
|
cx.shared().remotes[core.index].lifo_slot.is_none()
|
||||||
&& core.run_queue.is_empty()
|
&& core.run_queue.is_empty()
|
||||||
|
&& !core.is_shutdown
|
||||||
&& !core.is_traced
|
&& !core.is_traced
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user