Skip to content

Commit

Permalink
WIP enables if USE_MN_THREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Oct 10, 2023
1 parent c721ba1 commit ef78536
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thread_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,9 @@ rb_thread_sched_init(struct rb_thread_sched *sched, bool atfork)
ccan_list_head_init(&sched->readyq);
sched->readyq_cnt = 0;

#if USE_MN_THREADS
if (!atfork) sched->enable_mn_threads = true; // MN is enabled on Ractors
#endif
}

static void
Expand Down

0 comments on commit ef78536

Please sign in to comment.