Skip to content
  • Ben Gamari's avatar
    39c330c5
    semaphore: Teach semThreadWait to use semWait with threaded RTS · 39c330c5
    Ben Gamari authored and Bodigrim's avatar Bodigrim committed
    semThreadWait uses a rather atrocious polling loop to avoid
    blocking, which we block the entire program when using the non-threaded
    runtime. However, this is unnecessary in the threaded runtime, where we
    can instead simply block in semWait. Take advantage of this.
    
    Fixes #253.
    39c330c5
    semaphore: Teach semThreadWait to use semWait with threaded RTS
    Ben Gamari authored and Bodigrim's avatar Bodigrim committed
    semThreadWait uses a rather atrocious polling loop to avoid
    blocking, which we block the entire program when using the non-threaded
    runtime. However, this is unnecessary in the threaded runtime, where we
    can instead simply block in semWait. Take advantage of this.
    
    Fixes #253.
Loading