mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
parent
294c7e5076
commit
f41a0aea38
@ -194,15 +194,18 @@ class Lx_kit::Timer : public Lx::Timer
|
||||
while (1) {
|
||||
Lx::scheduler().current()->block_and_schedule();
|
||||
|
||||
Lx_kit::Timer::Context *ctx = t.first();
|
||||
if (!ctx || ctx->timeout > t.jiffies())
|
||||
continue;;
|
||||
while (Lx_kit::Timer::Context *ctx = t.first()) {
|
||||
if (ctx->timeout > t.jiffies()) {
|
||||
break;
|
||||
}
|
||||
|
||||
ctx->pending = false;
|
||||
ctx->function();
|
||||
ctx->pending = false;
|
||||
ctx->function();
|
||||
|
||||
if (!ctx->pending)
|
||||
t.del(ctx->timer);
|
||||
if (!ctx->pending) {
|
||||
t.del(ctx->timer);
|
||||
}
|
||||
}
|
||||
|
||||
t.schedule_next();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user