Class: Mutex

Inherits:
Object show all
Defined in:
lib/framework/rhoframework.rb

Overview

Mutex

Instance Method Summary collapse

Instance Method Details

#synchronizeObject



74
75
76
77
78
79
80
81
# File 'lib/framework/rhoframework.rb', line 74

def synchronize
  self.lock
  begin
    yield
  ensure
    self.unlock rescue nil
  end
end