1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/mutex
Benoit Daloze 178c1b0922 Make Mutex per-Fiber instead of per-Thread
* Enables Mutex to be used as synchronization between multiple Fibers
  of the same Thread.
* With a Fiber scheduler we can yield to another Fiber on contended
  Mutex#lock instead of blocking the entire thread.
* This also makes the behavior of Mutex consistent across CRuby, JRuby and TruffleRuby.
* [Feature #16792]
2020-09-14 16:44:09 +12:00
..
lock_spec.rb
locked_spec.rb
owned_spec.rb Make Mutex per-Fiber instead of per-Thread 2020-09-14 16:44:09 +12:00
sleep_spec.rb [ruby/spec] Just test that sleep completes 2020-02-06 15:42:16 +09:00
synchronize_spec.rb
try_lock_spec.rb
unlock_spec.rb [ruby/spec] Check by Thread#stop? 2020-02-06 14:50:32 +09:00