semaphore: Teach semThreadWait to use semWait with threaded RTS
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.
tests/Semaphore002.hs
0 → 100644
Please register or sign in to comment