The global-lock package

[Tags: bsd3, library]

This library provides a single global lock. You can use it, for example, to protect a thread-unsafe C library.

The implementation does not use unsafePerformIO. It should be safe against GHC bugs such as http://hackage.haskell.org/trac/ghc/ticket/5558.

You can use this library as-is, or as a template for including a similar lock in your own Haskell project.

This library requires that the C compiler invoked by Cabal is GCC 4.1 or newer.


[Skip to ReadMe]

Properties

Version0.1
Change logNone available
Dependenciesbase (>=3 && <5) [details]
LicenseBSD3
AuthorKeegan McAllister <mcallister.keegan@gmail.com>
MaintainerKeegan McAllister <mcallister.keegan@gmail.com>
CategorySystem, Concurrency
Source repositoryhead: git clone git://github.com/kmcallister/global-lock
UploadedFri Nov 4 07:48:43 UTC 2011 by KeeganMcAllister
DistributionsNixOS:0.1
Downloads261 total (10 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for global-lock-0.1

global-lock provides a single global lock for Haskell code, implemented without
unsafePerformIO.  You can use this, for example, to protect a thread-unsafe C
library.  global-lock is usable as-is, or as a template for including a similar
lock in your own Haskell project.

Documentation is hosted at http://hackage.haskell.org/package/global-lock

To build the documentation yourself, run

  $ cabal configure && cabal haddock --hyperlink-source

This will produce HTML documentation under dist/doc/html/global-lock