thread-local-storage

Several options for thread-local-storage (TLS) in Haskell. https://github.com/rrnewton/thread-local-storage

Version on this page:0.1.1
LTS Haskell 8.5:0.1.1
Stackage Nightly 2017-03-25:0.1.1
Latest on Hackage:0.1.1
BSD3 licensed by Ryan Newton
Maintained by rrnewton@gmail.com

Module documentation for 0.1.1

thread-local-storage

Hackage Hackage Dependencies [Haskell Programming Language][Haskell.org] [BSD3 License][tl;dr Legal: BSD3]

http://hackage.haskell.org/package/thread-local-storage "thread-local-storage package on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [tl;dr Legal: BSD3]: https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29 "BSD 3-Clause License (Revised)"

See .cabal file for description.

Here are some example benchmark results (on an Ivy Bridge i7-3770), with a typical time of 10.4 nanoseconds to get to a TLS variable given one IO thread per OS thread:

example benchmarks

Changes

0.1.1 [2017.01.22]

  • Expose Data.TLS.PThread.Internal. Note that there are no API guarantees whatsoever with this module, so use it with caution.
  • Add pthread to extra-libraries. Without it, some systems suffer from linker errors when using this library.
  • Fix build on GHC 7.6 and 7.8.
Depends on:
Used by 3 packages:
comments powered byDisqus