./devel/ruby-atomic, Atomic reference implementation for JRuby, Rubinius, and MRI

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2014Q2, Version: 1.1.15, Package name: ruby200-atomic-1.1.15, Maintainer: pkgsrc-users

Ruby-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: (Expand)

SHA1: 6bfba5ecf9de5da4181b705dfd08ef9f59e016a4
RMD160: 9ff8b80d048c7f09e6d59b8befc1565d5bb000fe
Filesize: 16.5 KB

Version history: (Expand)