thread-local-storage 0.1.0.1 → 0.1.0.2
raw patch · 3 files changed
+13/−1 lines, 3 files
Files
- Data/TLS/GHC.hs +6/−0
- Data/TLS/PThread.hs +6/−0
- thread-local-storage.cabal +1/−1
Data/TLS/GHC.hs view
@@ -4,6 +4,12 @@ -- | This is the simplest implementation of thread-local storage using -- GHC's built-in ThreadId capabilities.+--+-- While the interface below is designed to match the other+-- implementations of TLS in this package, the GHC implementation can+-- generaly be relied upon to keep a stable copy of the TLS variable+-- for each `ThreadId` that calls `getTLS`. This may change in the+-- future, however! module Data.TLS.GHC ( TLS
Data/TLS/PThread.hs view
@@ -5,6 +5,12 @@ -- | An implementation of TLS using the standard, Posix -- `pthread_create_key` routine.+--+-- Note that because this implementation uses Posix threads, it does+-- NOT care about Haskell IO threads. This module is generally used+-- to avoid problems with data structures or other APIs that are not+-- thread safe. That is, pthread-based TLS is sufficient to disallow+-- simultaneous access, irrespective of where IO threads migrate to. module Data.TLS.PThread ( TLS
thread-local-storage.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: thread-local-storage-version: 0.1.0.1+version: 0.1.0.2 synopsis: Several options for thread-local-storage (TLS) in Haskell. description: .