Package : ruby-atomic > RPM : ruby-atomic-1.1.16-3.mga5.src.rpm
Basic items
Name | ruby-atomic |
Version | 1.1.16 |
Release | 3.mga5 |
URL | http://github.com/headius/ruby-atomic |
Group | Development/Ruby |
Summary | An atomic reference implementation for JRuby, Rubinius, and MRI |
Size | 20KB |
Arch | x86_64 |
License | ASL 2.0 |
Description
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.
* 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.
Media information
Distribution release | Mageia 5 |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2014-10-16 19:00:42 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |