]> git.ipfire.org Git - thirdparty/tornado.git/commit
Stabilization of the period of ioloop.PeriodicCallback. 320/head
authorJesus Arias Fisteus <jfisteus@gmail.com>
Thu, 28 Jul 2011 16:44:29 +0000 (18:44 +0200)
committerJesus Arias Fisteus <jfisteus@gmail.com>
Thu, 28 Jul 2011 17:17:00 +0000 (19:17 +0200)
commitc4c596044f80a7ec87bc8827e56ae55fca703e0b
treec25d133b283be30a97da2fb5419c3498cc58e534
parent8c3e46c491abd739a2bbac46ca18146522798083
Stabilization of the period of ioloop.PeriodicCallback.

Previously, the timeout for the following event was computed by adding
callback_time to the actual time the callback finished, which caused
calls to the callback not being trully periodic.

This commit makes callback_time be a stable period by scheduling the
next timeout callback_time after the previous timeout was scheduled.
tornado/ioloop.py