diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-09-25 15:58:36 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-10-07 15:00:20 -0400 |
commit | b41f7c3814b2e0e765311babc851cd3d9b6a78d8 (patch) | |
tree | ff0dd8327fb48f68e5351cb8501d4bac16c32668 /libraries/ghc-prim | |
parent | 5fc4243bf2da2adbae3d01d163053e8895bc52d9 (diff) | |
download | haskell-b41f7c3814b2e0e765311babc851cd3d9b6a78d8.tar.gz |
WinIO: Small changes related to atomic request swaps.
Move the atomix exchange over the Ptr type to an internal module.
Fix a bug caused by us passing ptr-to-ptr instead of ptr to
atomic exchange.
Renamed interlockedExchange to exchangePtr.
I've also added an cas primitive. It turned out we don't need it
for WinIO but I'm leaving it in as it's useful for other things.
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r-- | libraries/ghc-prim/changelog.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-prim/changelog.md b/libraries/ghc-prim/changelog.md index 3df0b5e2ed..e4fab631dc 100644 --- a/libraries/ghc-prim/changelog.md +++ b/libraries/ghc-prim/changelog.md @@ -21,8 +21,8 @@ - Add primops for atomic exchange: - interlockedExchangeAddr# :: Addr# -> Addr# -> State# s -> (# State# s, Addr# #) - interlockedExchangeInt# :: Addr# -> Int# -> State# s -> (# State# s, Int# #) + atomicExchangeAddr# :: Addr# -> Addr# -> State# s -> (# State# s, Addr# #) + atomicExchangeInt# :: Addr# -> Int# -> State# s -> (# State# s, Int# #) - Add an explicit fixity for `(~)` and `(~~)`: |