[project @ 2000-10-02 11:06:19 by simonmar] - move readMVar and swapMVar from PrelConc to concurrent
[project @ 2000-10-02 11:06:19 by simonmar]
- move readMVar and swapMVar from PrelConc to concurrent

- add the following exception-safe MVar operations:

	withMVar    :: MVar a -> (a -> IO b) -> IO b
	modifyMVar  :: MVar a -> (a -> IO (a,b)) -> IO b
	modifyMVar_ :: MVar a -> (a -> IO a) -> IO ()

- re-implement readMVar and swapMVar in an exception-safe way.

- re-implement the Chan operations using withMVar et al.

TomMD/ghc,mettekou/ghc,olsner/ghc,gcampax/ghc,snoyberg/ghc,vTurbine/ghc,holzensp/ghc,snoyberg/ghc,christiaanb/ghc,nathyong/microghc-ghc,ezyang/ghc,jstolarek/ghc,nathyong/microghc-ghc,tibbe/ghc,vikraman/ghc,christiaanb/ghc,fmthoma/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,acowley/ghc,siddhanathan/ghc,mcmaniac/ghc,TomMD/ghc,fmthoma/ghc,acowley/ghc,oldmanmike/ghc,ml9951/ghc,urbanslug/ghc,nushio3/ghc,frantisekfarka/ghc-dsi,jstolarek/ghc,vikraman/ghc,AlexanderPankiv/ghc,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,acowley/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,vikraman/ghc,forked-upstream-packages-for-ghcjs/ghc,ryantm/ghc,gridaphobe/ghc,gcampax/ghc,wxwxwwxxx/ghc,mcschroeder/ghc,shlevy/ghc,mfine/ghc,siddhanathan/ghc,shlevy/ghc,ezyang/ghc,shlevy/ghc,sgillespie/ghc,frantisekfarka/ghc-dsi,anton-dessiatov/ghc,GaloisInc/halvm-ghc,ekmett/ghc,olsner/ghc,jstolarek/ghc,mcschroeder/ghc,olsner/ghc,anton-dessiatov/ghc,vTurbine/ghc,hferreiro/replay,acowley/ghc,oldmanmike/ghc,ml9951/ghc,mcschroeder/ghc,christiaanb/ghc,jstolarek/ghc,olsner/ghc,anton-dessiatov/ghc,snoyberg/ghc,nkaretnikov/ghc,christiaanb/ghc,wxwxwwxxx/ghc,ilyasergey/GHC-XAppFix,gcampax/ghc,nkaretnikov/ghc,ezyang/ghc,vikraman/ghc,spacekitteh/smcghc,lukexi/ghc-7.8-arm64,anton-dessiatov/ghc,gridaphobe/ghc,ryantm/ghc,tjakway/ghcjvm,green-haskell/ghc,TomMD/ghc,spacekitteh/smcghc,siddhanathan/ghc,nushio3/ghc,tibbe/ghc,GaloisInc/halvm-ghc,vikraman/ghc,jstolarek/ghc,elieux/ghc,oldmanmike/ghc,ml9951/ghc,frantisekfarka/ghc-dsi,da-x/ghc,ilyasergey/GHC-XAppFix,acowley/ghc,mettekou/ghc,lukexi/ghc-7.8-arm64,acowley/ghc,green-haskell/ghc,ryantm/ghc,gcampax/ghc,holzensp/ghc,gcampax/ghc,nomeata/ghc,ekmett/ghc,bitemyapp/ghc,ghc-android/ghc,mfine/ghc,tjakway/ghcjvm,sgillespie/ghc,forked-upstream-packages-for-ghcjs/ghc,sdiehl/ghc,olsner/ghc,ghc-android/ghc,tibbe/ghc,anton-dessiatov/ghc,lukexi/ghc-7.8-arm64,mcmaniac/ghc,ezyang/ghc,gridaphobe/ghc,vikraman/ghc,nushio3/ghc,ryantm/ghc,sgillespie/ghc,elieux/ghc,nkaretnikov/ghc,da-x/ghc,urbanslug/ghc,ghc-android/ghc,snoyberg/ghc,sgillespie/ghc,olsner/ghc,lukexi/ghc,siddhanathan/ghc,shlevy/ghc,lukexi/ghc,nathyong/microghc-ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,AlexanderPankiv/ghc,ezyang/ghc,tibbe/ghc,holzensp/ghc,mettekou/ghc,mcmaniac/ghc,urbanslug/ghc,shlevy/ghc,anton-dessiatov/ghc,nkaretnikov/ghc,christiaanb/ghc,lukexi/ghc,elieux/ghc,urbanslug/ghc,frantisekfarka/ghc-dsi,mettekou/ghc,fmthoma/ghc,ml9951/ghc,gridaphobe/ghc,spacekitteh/smcghc,mcmaniac/ghc,green-haskell/ghc,vikraman/ghc,TomMD/ghc,mettekou/ghc,ghc-android/ghc,lukexi/ghc-7.8-arm64,wxwxwwxxx/ghc,siddhanathan/ghc,ghc-android/ghc,nkaretnikov/ghc,da-x/ghc,anton-dessiatov/ghc,ekmett/ghc,ml9951/ghc,tibbe/ghc,gcampax/ghc,elieux/ghc,ilyasergey/GHC-XAppFix,gridaphobe/ghc,fmthoma/ghc,mfine/ghc,mfine/ghc,gcampax/ghc,ml9951/ghc,christiaanb/ghc,nushio3/ghc,ekmett/ghc,ekmett/ghc,sgillespie/ghc,TomMD/ghc,nkaretnikov/ghc,nkaretnikov/ghc,urbanslug/ghc,holzensp/ghc,sdiehl/ghc,wxwxwwxxx/ghc,shlevy/ghc,shlevy/ghc,urbanslug/ghc,vTurbine/ghc,mfine/ghc,AlexanderPankiv/ghc,hferreiro/replay,green-haskell/ghc,elieux/ghc,nushio3/ghc,hferreiro/replay,mfine/ghc,vTurbine/ghc,GaloisInc/halvm-ghc,mcschroeder/ghc,nathyong/microghc-ghc,green-haskell/ghc,nathyong/microghc-ghc,tjakway/ghcjvm,bitemyapp/ghc,da-x/ghc,sgillespie/ghc,AlexanderPankiv/ghc,spacekitteh/smcghc,TomMD/ghc,nomeata/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,sdiehl/ghc,snoyberg/ghc,siddhanathan/ghc,gridaphobe/ghc,da-x/ghc,da-x/ghc,oldmanmike/ghc,urbanslug/ghc,hferreiro/replay,bitemyapp/ghc,sdiehl/ghc,oldmanmike/ghc,ghc-android/ghc,gridaphobe/ghc,nushio3/ghc,nathyong/microghc-ghc,ilyasergey/GHC-XAppFix,ml9951/ghc,GaloisInc/halvm-ghc,snoyberg/ghc,sgillespie/ghc,hferreiro/replay,hferreiro/replay,tjakway/ghcjvm,sdiehl/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,acowley/ghc,lukexi/ghc-7.8-arm64,mcschroeder/ghc,ezyang/ghc,mfine/ghc,nomeata/ghc,TomMD/ghc,AlexanderPankiv/ghc,nushio3/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,snoyberg/ghc,nomeata/ghc,bitemyapp/ghc,mettekou/ghc,elieux/ghc,spacekitteh/smcghc,lukexi/ghc,bitemyapp/ghc,siddhanathan/ghc,ml9951/ghc,AlexanderPankiv/ghc,sdiehl/ghc,christiaanb/ghc,tjakway/ghcjvm,vTurbine/ghc,hferreiro/replay,mcschroeder/ghc,holzensp/ghc,nomeata/ghc,fmthoma/ghc,mettekou/ghc,nathyong/microghc-ghc,ryantm/ghc,vTurbine/ghc,tjakway/ghcjvm,olsner/ghc,forked-upstream-packages-for-ghcjs/ghc,forked-upstream-packages-for-ghcjs/ghc,sdiehl/ghc,ghc-android/ghc,fmthoma/ghc,mcmaniac/ghc,da-x/ghc,ezyang/ghc,AlexanderPankiv/ghc,elieux/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc