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

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


Branch: pkgsrc-2013Q3, Version: 1.1.14, Package name: ruby193-atomic-1.1.14, 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.


Master sites: (Expand)

SHA1: 255bad8a4310719d62684c6ee8cf470c2322b7e2
RMD160: 59cfaa3281a9ac35e9f61e45a8a4c3102efe96e5
Filesize: 16.5 KB

Version history: (Expand)