Method: XThread::RBMonitorMixin#mon_enter

Defined in:
lib/xthread/monitor.rb

#mon_enterObject

Enters exclusive section.



177
178
179
180
181
182
183
# File 'lib/xthread/monitor.rb', line 177

def mon_enter
  if @mon_owner != Thread.current
	@mon_mutex.lock
	@mon_owner = Thread.current
  end
  @mon_count += 1
end