BSD Ports

devel/hs-atomic-counter 0.1.2.3nb3 NetBSD

Mutable counters that can be modified with atomic operatinos

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
apache-2.0
Categories
devel
Package size
65.5 KiB, 512.6 KiB installed

Description

This package defines Counter type that can be safely modified concurrently from multiple threads. The type supports only few operations, namely read, write, cas (compare and swap), add, subtract and a few bitwise ones like or, and xor.

Most common use case is having a shared counter that multiple threads increment. Another potential use case is lightweight locks.

Install

Binary package:

pkgin install hs-atomic-counter

From pkgsrc:

cd /usr/pkgsrc/devel/hs-atomic-counter && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.1.2.3nb3
NetBSD 10.1 aarch640.1.2.3nb3
SmartOS / illumos x86_640.1.2.3nb3
macOS 15 arm640.1.2.3nb3

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1