Skip to content

Commit

Permalink
Fixed initialization of the master worker thread id
Browse files Browse the repository at this point in the history
Fixes #452
  • Loading branch information
cmnrd committed Jun 25, 2024
1 parent 587a8f9 commit e14a891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/threaded/reactor_threaded.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ int lf_reactor_c_main(int argc, const char* argv[]) {
// run on the main thread, rather than creating a new thread.
// This is important for bare-metal platforms, who can't
// afford to have the main thread sit idle.
env->thread_ids[j] = lf_thread_self();
continue;
}
if (lf_thread_create(&env->thread_ids[j], worker, env) != 0) {
Expand Down

0 comments on commit e14a891

Please sign in to comment.