Path to this page:
./
devel/ruby-atomic,
Atomic reference implementation for JRuby, Rubinius, and MRI
Branch: pkgsrc-2015Q3,
Version: 1.1.99,
Package name: ruby200-atomic-1.1.99,
Maintainer: pkgsrc-usersRuby-atomic is an atomic reference implementation for JRuby, Rubinius, and MRI.
This library provides:
* an Atomic class that guarantees atomic updates to its contained value
The Atomic class provides accessors for the contained "value" plus two update
methods:
* update will run the provided block, passing the current value and replacing
it with the block result iff the value has not been changed in the mean
time. It may run the block repeatedly if there are other concurrent updates
in progress.
* try_update will run the provided block, passing the current value and
replacing it with the block result. If the value changes before the update
can happen, it will throw Atomic::ConcurrentUpdateError.
Required to run:[
lang/ruby200-base]
Master sites:
SHA1: ca2ac92292c7ba2a30879fe1832d9c1e4b44d332
RMD160: 182d4d2ab6052ba588801d17328d8e8e5e7ccb6c
Filesize: 17.5 KB
Version history: (Expand)
- (2015-09-30) Package added to pkgsrc.se, version ruby200-atomic-1.1.99 (created)