Hi,
I would like to execute some methods atomicity with Ruby, according to http://en.wikipedia.org/wiki/Atomicity_(database_systems)
For instance, if I have:
a = 30
b = 75
I would like to be able to do something like:
atomic_operation do
a += 10
b -= 39
end
Is there a native module in Ruby 1.9 that allow such process? If possible, I would like to do so without using a plugin. Many thanks!