The global-lock package
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.
Properties
| Version | 0.1 |
|---|---|
| Dependencies | base (≥3 & <5) |
| License | BSD3 |
| Author | Keegan McAllister <mcallister.keegan@gmail.com> |
| Maintainer | Keegan McAllister <mcallister.keegan@gmail.com> |
| Category | System, Concurrency |
| Source repository | git clone git://github.com/kmcallister/global-lock |
| Upload date | Fri Nov 4 07:48:43 UTC 2011 |
| Uploaded by | KeeganMcAllister |
| Built on | ghc-7.2 |
Modules
Downloads
- global-lock-0.1.tar.gz (Cabal source package)
- package description (included in the package)