X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Control%2FConcurrent.hs;h=451e4f9393032a7e07eabba3249ac2c63c97ec55;hb=6be5e3277137f11000e7eb145d53009e157e7c90;hp=06e4b1a196169d81607b57e3b8019139d947cdba;hpb=75ea0fa2485c169f0546d5d40477d2f6747efe29;p=ghc-base.git diff --git a/Control/Concurrent.hs b/Control/Concurrent.hs index 06e4b1a..451e4f9 100644 --- a/Control/Concurrent.hs +++ b/Control/Concurrent.hs @@ -368,8 +368,8 @@ nmergeIO lss One final note: the @aaaa@ @bbbb@ example may not work too well on GHC (see Scheduling, above), due - to the locking on a 'Handle'. Only one thread - may hold the lock on a 'Handle' at any one + to the locking on a 'System.IO.Handle'. Only one thread + may hold the lock on a 'System.IO.Handle' at any one time, so if a reschedule happens while a thread is holding the lock, the other thread won't be able to run. The upshot is that the switch from @aaaa@ to