Top Level Namespace

Defined Under Namespace

Modules: Mongo

Instance Method Summary collapse

Instance Method Details

#mongoObject

Mongo Locking Library

Despite the Locker being placed on the model classes, the dependency graph is actually instance-based, thus the graph can only be resolved during runtime.

Locking takes an instance to start with, optionally walks the graph through parent “pointers” (procs whose arbitrary function produces the parent lockable), then does the atomic incr/decr dance with the root lockable’s key.

TODO: More docs. TBC.



14
# File 'lib/mongo/locking.rb', line 14

require 'mongo'