Establish controlled red-suite baseline

This commit is contained in:
2026-08-08 23:35:04 +02:00
parent 3140e65dc7
commit e63f2c615a
9 changed files with 314 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ fn estate_packet(blocked: &[UUID], trusted: &[UUID], allowed: &[UUID]) -> Estate
}
}
fn block_on_with<F: Future>(future: F, mut after_pending: impl FnMut()) -> F::Output {
fn block_on_with<F: Future>(future: F, mut after_first_poll: impl FnMut()) -> F::Output {
struct ThreadWake(std::thread::Thread);
impl Wake for ThreadWake {
fn wake(self: Arc<Self>) {
@@ -93,7 +93,7 @@ fn block_on_with<F: Future>(future: F, mut after_pending: impl FnMut()) -> F::Ou
Poll::Ready(value) => return value,
Poll::Pending if !invoked => {
invoked = true;
after_pending();
after_first_poll();
}
Poll::Pending => std::thread::park_timeout(Duration::from_millis(10)),
}