[commit: base] master: Minor rewording. (92ed514)
Edward Z. Yang
ezyang at ghc.haskell.org
Sun Jul 14 23:36:55 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/92ed51429bcc9c7ed8e268e1b17d93df74a56550
>---------------------------------------------------------------
commit 92ed51429bcc9c7ed8e268e1b17d93df74a56550
Author: Edward Z. Yang <ezyang at mit.edu>
Date: Sun Jul 14 14:36:52 2013 -0700
Minor rewording.
Signed-off-by: Edward Z. Yang <ezyang at mit.edu>
>---------------------------------------------------------------
GHC/MVar.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/GHC/MVar.hs b/GHC/MVar.hs
index 45edec8..4113f87 100644
--- a/GHC/MVar.hs
+++ b/GHC/MVar.hs
@@ -100,8 +100,8 @@ takeMVar (MVar mvar#) = IO $ \ s# -> takeMVar# mvar# s#
-- /Compatibility note:/ Prior to base 4.7, 'readMVar' was a combination
-- of 'takeMVar' and 'putMVar'. This mean that in the presence of
-- other threads attempting to 'putMVar', 'readMVar' could block.
--- Furthermore, 'readMVar' would not be serviced immediately if there
--- were already pending thread blocked on 'takeMVar'. The old behavior
+-- Furthermore, 'readMVar' would not receive the next 'putMVar' if there
+-- was already a pending thread blocked on 'takeMVar'. The old behavior
-- can be recovered by implementing 'readMVar as follows:
--
-- @
More information about the ghc-commits
mailing list