module ObStore::Lockable

Public Instance Methods

mutex() click to toggle source
# File lib/obstore/lockable.rb, line 12
def mutex
  @mutex ||= Mutex.new
end
with_mutex() { || ... } click to toggle source
# File lib/obstore/lockable.rb, line 16
def with_mutex
  mutex.synchronize { yield }
end