atomic-primops 0.8.0.2 → 0.8.0.3
raw patch · 2 files changed
+7/−10 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Atomics.hs +6/−9
- atomic-primops.cabal +1/−1
Data/Atomics.hs view
@@ -437,29 +437,26 @@ -- Memory barriers -------------------------------------------------------------------------------- --- | Memory barrier implemented by the GHC rts (see SMP.h).-storeLoadBarrier :: IO ()---- | Memory barrier implemented by the GHC rts (see SMP.h).-loadLoadBarrier :: IO ()---- | Memory barrier implemented by the GHC rts (see SMP.h).-writeBarrier :: IO ()- -- GHC 7.8 consistently exposes these symbols while linking: #if MIN_VERSION_base(4,7,0) && !defined(mingw32_HOST_OS)+#warning "Assuming that store_load_barrier and friends are defined in the GHC RTS." +-- | Memory barrier implemented by the GHC rts (see SMP.h). foreign import ccall unsafe "store_load_barrier" storeLoadBarrier :: IO () +-- | Memory barrier implemented by the GHC rts (see SMP.h). foreign import ccall unsafe "load_load_barrier" loadLoadBarrier :: IO () +-- | Memory barrier implemented by the GHC rts (see SMP.h). foreign import ccall unsafe "write_barrier" writeBarrier :: IO () #else+#warning "importing store_load_barrier and friends from the package's C code."+ -- GHC 7.6 did not consistently expose them (e.g. in the non-threaded RTS), -- so rather we grab this functionality from RtsDup.c: foreign import ccall unsafe "DUP_store_load_barrier" storeLoadBarrier
atomic-primops.cabal view
@@ -1,5 +1,5 @@ Name: atomic-primops-Version: 0.8.0.2+Version: 0.8.0.3 License: BSD3 License-file: LICENSE Author: Ryan Newton