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