ThreadsWait

ThreadsWait

ri

 ----------------------------------------------------- Class: ThreadsWait
      This class watches for termination of multiple threads. Basic
      functionality (wait until specified threads have terminated) can be
      accessed through the class method ThreadsWait::all_waits. Finer
      control can be gained using instance methods.
 
      Example:
 
        ThreadsWait.all_wait(thr1, thr2, ...) do |t|
          STDERR.puts "Thread #{t} has terminated."
        end
 
 ------------------------------------------------------------------------
 
 
 Constants:
 ----------
      RCS_ID: '-$Id: thwait.rb,v 1.3 1998/06/26 03:19:34 keiju Exp keiju
              $-'
 
 
 Class methods:
 --------------
      all_waits, new
 
 
 Instance methods:
 -----------------
      all_waits, empty?, finished?, join, join_nowait, next_wait
 
 Attributes:
      threads

refe

 ==== ThreadsWait ====
 provides synchronization for multiple threads.
 ---- Singleton methods ----
 all_waits new
 ---- Instance methods ----
 all_waits empty? finished? join join_nowait next_wait
 threads
 ---- Singleton methods (inherited) ----
 ---- Instance methods (inherited) ----

  • 2006/05/15 12:17:09 empty?
  • 2006/05/15 12:35:19 join
  • 2006/05/15 12:42:14 new
  • 2006/05/15 12:42:22 next
  • 2006/05/15 12:43:38 now
  • 2006/05/15 11:55:18 ThreadsWait
  • 2006/05/15 11:54:40 ThWait
  • 2006/05/15 13:11:55 wait
  • 2006/05/15 11:59:52 ^