Skip to content

Commit 990870f

Browse files
committed
..
1 parent 7a23e16 commit 990870f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/reactor.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ impl ReactorLock<'_> {
322322
// Collect wakers if a writability event was emitted.
323323
for &(dir, emitted) in &[(WRITE, ev.writable), (READ, ev.readable)] {
324324
if emitted {
325+
println!("delivering event dir: {}, tick: {}", dir, tick);
325326
state[dir].tick = tick;
326327
state[dir].drain_into(&mut wakers);
327328
}
@@ -443,6 +444,10 @@ impl Source {
443444
if let Some((a, b)) = state[dir].ticks {
444445
// If `state[dir].tick` has changed to a value other than the old reactor tick,
445446
// that means a newer reactor tick has delivered an event.
447+
println!(
448+
"checking ticks dir: {}, cur: {}, saved: {}, {}",
449+
dir, state[dir].tick, a, b
450+
);
446451
if state[dir].tick != a && state[dir].tick != b {
447452
state[dir].ticks = None;
448453
return Poll::Ready(Ok(()));
@@ -465,6 +470,8 @@ impl Source {
465470
state[dir].ticks = Some((Reactor::get().ticker(), state[dir].tick));
466471
}
467472

473+
println!("saving ticks dir: {}, ticks: {:?}", dir, state[dir].ticks);
474+
468475
// Update interest in this I/O handle.
469476
if was_empty {
470477
// Create the event that we are interested in.

0 commit comments

Comments
 (0)