This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

Thread::ConditionVariable

        # Thread::ConditionVariable < Object

(from ruby core)
---
ConditionVariable objects augment class Mutex. Using condition
variables, it is possible to suspend while in the middle of a critical
section until a resource becomes available.

Example:

    mutex = Thread::Mutex.new
    resource = Thread::ConditionVariable.new

    a = Thread.new {
       mutex.synchronize {
         # Thread 'a' now needs the resource
         resource.wait(mutex)
         # 'a' can now have the resource
       }
    }

    b = Thread.new {
       mutex.synchronize {
         # Thread 'b' has finished using the resource
         resource.signal
       }
    }
---
# Class methods:

    new

# Instance methods:

    broadcast
    signal
    wait


      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.