Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Handler::tick() #231

Merged
merged 1 commit into from Aug 21, 2015
Merged

Implement Handler::tick() #231

merged 1 commit into from Aug 21, 2015

Conversation

hjr3
Copy link
Contributor

@hjr3 hjr3 commented Aug 20, 2015

The Handler::tick() method is called at the end of each event
loop tick.

Fixes #219

The `Handler::tick()` method is called at the end of each event
loop tick.

Fixes tokio-rs#219
@@ -263,6 +263,7 @@ impl<H: Handler> EventLoop<H> {
self.io_process(handler, events);
self.notify(handler, messages);
self.timer_process(handler);
handler.tick(self);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if I should move this above the call to timer_process. Here is how the logs look currently:

TRACE:mio::event_loop: event loop tick
TRACE:mio::timer: tick_to; now=40; tick=39
TRACE:mio::timer: ticking; curr=Token(18446744073709551615)
TRACE:mio::timer: ticking; curr=Token(18446744073709551615)
TRACE:mob_server::server: Handling end of tick
TRACE:mio::event_loop: event loop tick
TRACE:mio::timer: tick_to; now=42; tick=41
TRACE:mio::timer: ticking; curr=Token(18446744073709551615)
TRACE:mio::timer: ticking; curr=Token(18446744073709551615)
TRACE:mob_server::server: Handling end of tick

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you wondering this? Not following. Everything looks good to me, let me know if you want it merged 👍

@carllerche carllerche merged commit a579803 into tokio-rs:master Aug 21, 2015
@carllerche
Copy link
Member

Thanks! Merged

@dpc
Copy link
Contributor

dpc commented Aug 22, 2015

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants