Skip to content

Commit 3d98af2

Browse files
committed
Improve comment about initializing the recycle queue with an event.
1 parent cb0078a commit 3d98af2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/reactor_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ void _lf_initialize_timers(environment_t* env) {
551551
}
552552

553553
// Create an extra event and put it on the recycle queue.
554-
// An LF program with n timers require n+1 events and the last event
555-
// needs to be initialized to the event recycle queue.
554+
// An LF program with n timers require n+1 events. By putting the
555+
// last event on the recycle queue we avoid allocating it at runtime.
556556
if (env->timer_triggers_size > 0) {
557557
event_t *e = _lf_get_new_event(env);
558558
_lf_recycle_event(env, e);

0 commit comments

Comments
 (0)