The bits-atomic package

[Tags: bsd3, library]

Atomic operations including CAS (compare-and-swap), fetch & add and variants suitable for low-level shared-memory synchronization.

The implementation is using GCC's builtin atomic operations (available in GCC >= 4) in C wrappers called through the FFI. See these links for background:

Portability: This package is primarily developed on a Linux system, but should work wherever GCC >= 4 is available. It has been confirmed as working on OSX. On Windows, it should work with Cygwin but currently fails for vanilla Haskell-Platform 2010.1.0.0 as it still packages GCC 3.x. An installer for updated versions of GCC is available at http://www.mingw.org/ and should make this package work in connection with Haskell-Platform. Feedback on compatibility would be appreciated.

Testing: The following commands can be used to compile and run the test suite:

 cabal unpack bits-atomic && cd bits-atomic-* # if not yet locally available
 cabal configure -ftest
 cabal build
 cabal test

Recent changes:


Properties

Versions0.1.0, 0.1.1, 0.1.2, 0.1.3
Dependenciesbase (>=4 && <6)
LicenseBSD3
AuthorGabriel Wicke <wicke@wikidev.net>
MaintainerGabriel Wicke <wicke@wikidev.net>
Stabilityexperimental
CategoryData, Concurrency, Foreign
Source repositoryhead: hg clone http://dev.wikidev.net/hg/bits-atomic/
Executablestest
UploadedSun Sep 5 07:54:05 UTC 2010 by GabrielWicke
DistributionsFreeBSD:0.1.3, NixOS:0.1.3
Downloads2569 total (49 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefault
testBuild test program.Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees