Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Feb 7, 2024
1 parent 3d98af2 commit b10e17b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/reactor_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,8 @@ void _lf_initialize_timers(environment_t* env) {
}
}

// Create an extra event and put it on the recycle queue.
// An LF program with n timers require n+1 events. By putting the
// last event on the recycle queue we avoid allocating it at runtime.
// To avoid runtime memory allocations for timer-driven programs
// the recycle queue is initialized with a single event.
if (env->timer_triggers_size > 0) {
event_t *e = _lf_get_new_event(env);
_lf_recycle_event(env, e);
Expand Down

0 comments on commit b10e17b

Please sign in to comment.