Cleanup commented code

* Mutex operations no longer disable the Fiber scheduler.
This commit is contained in:
Benoit Daloze 2020-09-17 17:29:43 +02:00
parent d01954632d
commit d9b943b8e5

View File

@ -199,8 +199,6 @@ mutex_locked(rb_thread_t *th, VALUE self)
mutex->next_mutex = th->keeping_mutexes;
}
th->keeping_mutexes = mutex;
// th->blocking += 1;
}
/*
@ -394,8 +392,6 @@ rb_mutex_unlock_th(rb_mutex_t *mutex, rb_thread_t *th, rb_fiber_t *fiber)
struct sync_waiter *cur = 0, *next;
rb_mutex_t **th_mutex = &th->keeping_mutexes;
// th->blocking -= 1;
mutex->fiber = 0;
list_for_each_safe(&mutex->waitq, cur, next, node) {
list_del_init(&cur->node);