diff options
Diffstat (limited to 'src/pulp.c')
-rw-r--r-- | src/pulp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -269,8 +269,6 @@ static void pulp_schedule(pulp_t *pulp) assert(pulp); - expire_alarms(pulp); - current = pulp->current; pulp->current = NULL; @@ -296,6 +294,8 @@ int pulp_tick(pulp_t *pulp, unsigned *next_tick_delay_us) { assert(pulp); + expire_alarms(pulp); + swap_context(&pulp->caller_context, &pulp->schedule_context); if (pulp->exited) |