Skip to content

Commit

Permalink
WIP: init vm->ractor.sched.barrier_release_cond
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Sep 25, 2023
1 parent 19339c5 commit 4d22e40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thread_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,7 @@ thread_sched_atfork(struct rb_thread_sched *sched)
// rb_native_cond_destroy(&vm->ractor.sched.cond);
rb_native_cond_initialize(&vm->ractor.sched.cond);
rb_native_cond_initialize(&vm->ractor.sched.barrier_complete_cond);
rb_native_cond_initialize(&vm->ractor.sched.barrier_release_cond);

ccan_list_head_init(&vm->ractor.sched.grq);
ccan_list_head_init(&vm->ractor.sched.timeslice_threads);
Expand Down Expand Up @@ -1563,6 +1564,8 @@ Init_native_thread(rb_thread_t *main_th)
rb_native_mutex_initialize(&vm->ractor.sched.lock);
rb_native_cond_initialize(&vm->ractor.sched.cond);
rb_native_cond_initialize(&vm->ractor.sched.barrier_complete_cond);
rb_native_cond_initialize(&vm->ractor.sched.barrier_release_cond);

ccan_list_head_init(&vm->ractor.sched.grq);
ccan_list_head_init(&vm->ractor.sched.timeslice_threads);
ccan_list_head_init(&vm->ractor.sched.running_threads);
Expand Down

0 comments on commit 4d22e40

Please sign in to comment.