concurrent-hashtable 0.1.4 → 0.1.5
raw patch · 2 files changed
+4/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
concurrent-hashtable.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 858878d1ee73f77599b540ea13d5e57adb5229d7437a5c5c24c792dfa2ca2906+-- hash: b094e3fb9eeeb3caeb888a7f25fac54aac09728f36b3dd9019aba9518a5cc7c7 name: concurrent-hashtable-version: 0.1.4+version: 0.1.5 synopsis: Thread-safe hash tables for multi-cores! description: Please see the README on GitHub at <https://github.com/pwrobinson/concurrent-hashtable#readme> category: Concurrency
src/Data/HashTable/Internal.hs view
@@ -106,6 +106,7 @@ readSizeIO ht = do V.length <$> readTVarIO (_chainsVecTV ht) +-- | Returns the size of the vector representing the hash table. {-# INLINABLE readSize #-} readSize :: HashTable k v -> STM Int readSize ht = do@@ -275,7 +276,7 @@ readLoad :: HashTable k v -> IO Int readLoad htable = readIORef (_totalLoad htable) --- Atomically retrieves list of key-value pairs. If there is a lot of contention going on, this may be very inefficient.+-- | Atomically retrieves list of key-value pairs. If there is a lot of contention going on, this may be very inefficient. readAssocs :: (Eq k) => HashTable k v -> STM [(k,v)] readAssocs htable = do