@@ -322,6 +322,7 @@ impl ReactorLock<'_> {
322
322
// Collect wakers if a writability event was emitted.
323
323
for & ( dir, emitted) in & [ ( WRITE , ev. writable ) , ( READ , ev. readable ) ] {
324
324
if emitted {
325
+ println ! ( "delivering event dir: {}, tick: {}" , dir, tick) ;
325
326
state[ dir] . tick = tick;
326
327
state[ dir] . drain_into ( & mut wakers) ;
327
328
}
@@ -443,6 +444,10 @@ impl Source {
443
444
if let Some ( ( a, b) ) = state[ dir] . ticks {
444
445
// If `state[dir].tick` has changed to a value other than the old reactor tick,
445
446
// 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
+ ) ;
446
451
if state[ dir] . tick != a && state[ dir] . tick != b {
447
452
state[ dir] . ticks = None ;
448
453
return Poll :: Ready ( Ok ( ( ) ) ) ;
@@ -465,6 +470,8 @@ impl Source {
465
470
state[ dir] . ticks = Some ( ( Reactor :: get ( ) . ticker ( ) , state[ dir] . tick ) ) ;
466
471
}
467
472
473
+ println ! ( "saving ticks dir: {}, ticks: {:?}" , dir, state[ dir] . ticks) ;
474
+
468
475
// Update interest in this I/O handle.
469
476
if was_empty {
470
477
// Create the event that we are interested in.
0 commit comments