genode/repos/base/include/timer_session
Norman Feske 49481dd3fb timer: restore semantics of periodic timeout 0
The 'Timer::Session::trigger_periodic' RPC function used to accept 0 as
a way to de-schedule the periodic processing. Several components such as
nitpicker relied on this special case. In "timeout: rework timeout
framework", the value of zero was silently clamped to 1, which has the
opposite effect: triggering signals at the maximum rate. This results in
a visible effect in Sculpt where the leitzentrale-nitpicker instance
produces a constant load of 2% CPU time.

This patch restores the original timer semantics by

- Documenting it in timer_session.h,

- Handling the case explicitly in the timer implementation, and

- Replacing the silent clamping of the unexpected value 0 passed
  to the timeout framework by a diagnostic error message.

Issue #3884
2021-04-20 12:03:03 +02:00
..
capability.h Move timer from os to base repository 2019-01-14 12:33:57 +01:00
client.h timeout: use uint64_t for all plain time values 2019-05-06 16:15:26 +02:00
connection.h timeout: rework timeout framework 2020-10-09 13:35:56 +02:00
timer_session.h timer: restore semantics of periodic timeout 0 2021-04-20 12:03:03 +02:00