The bits-atomic package

[Tags: bsd3, library]

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

The implementation is using GCC's builtin atomic operations in C wrappers called through the FFI.

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

Properties

Versions0.1.0, 0.1.1, 0.1.2, 0.1.3
Dependenciesbase (>=4 && <6), HUnit, QuickCheck, test-framework, test-framework-hunit, test-framework-quickcheck2
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
Upload dateMon Aug 30 09:48:44 UTC 2010
Uploaded byGabrielWicke
DistributionsFreeBSD:0.1.3, NixOS:0.1.3
Downloads2287 total (60 in last 30 days)

Modules

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