From d9b943b8e57af5d2f2734998dc67c56cbf3b77b7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 17 Sep 2020 17:29:43 +0200 Subject: [PATCH] Cleanup commented code * Mutex operations no longer disable the Fiber scheduler. --- thread_sync.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/thread_sync.c b/thread_sync.c index 67d796233c..41df2dead9 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -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);