Skip to content
  • Benoit Daloze's avatar
    178c1b09
    Make Mutex per-Fiber instead of per-Thread · 178c1b09
    Benoit Daloze authored
    * 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]
    178c1b09
    Make Mutex per-Fiber instead of per-Thread
    Benoit Daloze authored
    * 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]
Loading