I am looking for a way to synchronize access to a shared data
structure in a standard rails app.
I read that if you are running on passenger, then Mutex.new is of no
use? Can somebody please clarify this?
I know that I can use transaction and :lock => true to do db level
locking on models, but I have a global hash defined in an initializer
GLOBAL_DATA = Hash.new
and I am storing data in it that will be accessed by multiple
I would simply like to wrap access to this structure in some kind of
Anyone got any suggestions?