mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-11 20:01:48 +00:00
committed by
Christian Helmuth
parent
e8db9bda9a
commit
2ba5f8f4f3
@ -65,10 +65,9 @@ bool Timeout::Alarm::on_alarm(unsigned)
|
|||||||
** Alarm_timeout_scheduler **
|
** Alarm_timeout_scheduler **
|
||||||
*****************************/
|
*****************************/
|
||||||
|
|
||||||
void Alarm_timeout_scheduler::handle_timeout(Duration)
|
void Alarm_timeout_scheduler::handle_timeout(Duration duration)
|
||||||
{
|
{
|
||||||
unsigned long const curr_time_us =
|
unsigned long const curr_time_us = duration.trunc_to_plain_us().value;
|
||||||
_time_source.curr_time().trunc_to_plain_us().value;
|
|
||||||
|
|
||||||
_alarm_scheduler.handle(curr_time_us);
|
_alarm_scheduler.handle(curr_time_us);
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ void Timer::Connection::_handle_timeout()
|
|||||||
_update_real_time();
|
_update_real_time();
|
||||||
}
|
}
|
||||||
if (_handler) {
|
if (_handler) {
|
||||||
_handler->handle_timeout(Duration(Microseconds(us)));
|
_handler->handle_timeout(curr_time());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user