diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-09-17 17:26:52 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-17 17:26:52 +0200 |
commit | d01954632d7cd6574d51c8cc95b832ad5f9de62d (patch) | |
tree | 2e1ef36466f9df8dae2a07f3378554c517abeed8 /test/fiber | |
parent | 264889ec3d3d38fc1fd23c4fb48402f1367a8deb (diff) |
Add missing goto found;
* To still remove the lock from the Thread's list of acquired locks.
* Also to not wake up other waiters and preserve blocking behavior.
Diffstat (limited to 'test/fiber')
-rw-r--r-- | test/fiber/scheduler.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fiber/scheduler.rb b/test/fiber/scheduler.rb index 193a824f7f..43edcb27ed 100644 --- a/test/fiber/scheduler.rb +++ b/test/fiber/scheduler.rb @@ -135,7 +135,8 @@ class Scheduler @locking -= 1 end - # Used when synchronization wakes up a previously-blocked fiber (Mutex#unlock, Queue#push, ...) + # Used when synchronization wakes up a previously-blocked fiber (Mutex#unlock, Queue#push, ...). + # This might be called from another thread. def unblock(blocker, fiber) # p [__method__, blocker, fiber] @lock.synchronize do |