Project

General

Profile

« Previous | Next » 

Revision 178c1b09

Added by Eregon (Benoit Daloze) almost 5 years ago

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]