Module: Rubcask::Concurrency::FakeMonitorMixin

Defined in:
lib/rubcask/concurrency/fake_monitor_mixin.rb

Overview

Fake of MonitorMixin module that implements a subset of methods It does not do any synchronization

Instance Method Summary collapse

Instance Method Details

#mon_enterObject



14
15
# File 'lib/rubcask/concurrency/fake_monitor_mixin.rb', line 14

def mon_enter
end

#mon_exitObject



17
18
# File 'lib/rubcask/concurrency/fake_monitor_mixin.rb', line 17

def mon_exit
end

#mon_synchronizeObject Also known as: synchronize



9
10
11
# File 'lib/rubcask/concurrency/fake_monitor_mixin.rb', line 9

def mon_synchronize
  yield
end