Project

General

Profile

Actions

Feature #7087

open

::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist

Added by rklemme (Robert Klemme) about 12 years ago. Updated almost 7 years ago.

Status:
Assigned
Target version:
-
[ruby-core:47735]

Description

See program attached to bug #7086: timeout_4 always throws:

ERROR: method "timeout_4": #<NoMethodError: private method `sleep' called for #Monitor:0x87e49f8>

$ irb19 -r monitor
irb(main):001:0> Monitor.new.method(:sleep)
=> #<Method: Monitor(Kernel)#sleep>
irb(main):002:0> Monitor.instance_methods.grep /sleep/
=> []

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0