]> source.dussan.org Git - tigervnc.git/commit
Detect conflicting timer rescheduling
authorPierre Ossman <ossman@cendio.se>
Thu, 29 Feb 2024 08:23:01 +0000 (09:23 +0100)
committerPierre Ossman <ossman@cendio.se>
Wed, 19 Jun 2024 14:39:07 +0000 (16:39 +0200)
commitb9442affc0eb877603766452601d9db8fd4ef79a
tree135019d6612341ac6ce12d6223da06ead866ceca
parent90e9db2dadccec9f614e33092f3b41d82966ae74
Detect conflicting timer rescheduling

Repeating a timer can be done in two ways:

 * Returning true from the handler
 * Calling start() again in the handler

The latter is useful if you want to change the timer interval.

If both are used, then it becomes ambiguous when the timer should fire
again.

Detect this case and warn about it. Current implementation will respect
the new interval given to start(), rather than the interval set before
running the handler.
common/rfb/Timer.cxx