diff options
author | Benoit Daloze <[email protected]> | 2020-09-17 17:29:43 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2020-09-17 17:29:43 +0200 |
commit | d9b943b8e57af5d2f2734998dc67c56cbf3b77b7 (patch) | |
tree | 7b482985fd7e568795cecd6c8989e5aea289857e /thread_sync.c | |
parent | d01954632d7cd6574d51c8cc95b832ad5f9de62d (diff) |
Cleanup commented code
* Mutex operations no longer disable the Fiber scheduler.
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 4 |
1 files changed, 0 insertions, 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); |