summaryrefslogtreecommitdiff
path: root/ext/monitor/lib
diff options
context:
space:
mode:
-rw-r--r--ext/monitor/lib/monitor.rb8
1 files changed, 1 insertions, 7 deletions
@@ -105,13 +105,7 @@ module MonitorMixin
#
def wait(timeout = nil)
@monitor.mon_check_owner
- count = @monitor.__send__(:exit_for_cond)
- begin
- @cond.wait(@monitor.__send__(:mutex_for_cond), timeout)
- return true
- ensure
- @monitor.__send__(:enter_for_cond, count)
- end
end
#