Path to this page:
./
devel/ruby-atomic,
Atomic reference implementation for JRuby, Rubinius, and MRI
Branch: pkgsrc-2013Q4,
Version: 1.1.14,
Package name: ruby193-atomic-1.1.14,
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/ruby193-base]
Master sites: (Expand)
SHA1: 255bad8a4310719d62684c6ee8cf470c2322b7e2
RMD160: 59cfaa3281a9ac35e9f61e45a8a4c3102efe96e5
Filesize: 16.5 KB
Version history: (Expand)
- (2014-01-01) Package has been reborn
- (2013-12-31) Package added to pkgsrc.se, version ruby193-atomic-1.1.14 (created)