timeout: use uint64_t for all plain time values

This enforces the use of unsigned 64-bit values for time in the duration type,
the timeout framework, the timer session, the userland timer-drivers, and the
alarm framework on all platforms. The commit also adapts the code that uses
these tools accross all basic repositories (base, base-*, os. gems, libports,
ports, dde_*) to use unsigned 64-bit values for time as well as far as this
does not imply profound modifications.

Fixes #3208
This commit is contained in:
Martin Stein
2019-04-09 15:46:36 +02:00
committed by Christian Helmuth
parent e072ee480b
commit 181c78d482
122 changed files with 537 additions and 609 deletions

View File

@ -34,7 +34,7 @@ class Init::Heartbeat : Genode::Noncopyable
Constructible<Timer::Connection> _timer { };
unsigned _rate_ms = 0;
uint64_t _rate_ms = 0;
Signal_handler<Heartbeat> _timer_handler;

View File

@ -45,10 +45,10 @@ class Init::State_reporter : public Report_update_trigger
Reconstructible<Report_detail> _report_detail { };
unsigned _report_delay_ms = 0;
uint64_t _report_delay_ms = 0;
/* interval used when child-ram reporting is enabled */
unsigned _report_period_ms = 0;
uint64_t _report_period_ms = 0;
/* version string from config, to be reflected in the report */
typedef String<64> Version;
@ -158,7 +158,7 @@ class Init::State_reporter : public Report_update_trigger
* the user intends to limit the rate of state reports. If so, we
* use the value of 'delay_ms' as interval.
*/
unsigned const period_ms = max(1000U, _report_delay_ms);
uint64_t const period_ms = max(1000U, _report_delay_ms);
bool const period_changed = (_report_period_ms != period_ms);
bool const report_periodically = _report_detail->child_ram()
|| _report_detail->child_caps();