| Path: | thwait.rb |
| Last Update: | Sun Jun 01 17:54:45 -0500 2008 |
thwait.rb - thread synchronization class
$Release Version: 0.9 $
$Revision: 1.3 $
$Date: 1998/06/26 03:19:34 $
by Keiju ISHITSUKA(Nihpon Rational Software Co.,Ltd.)
—
feature: provides synchronization for multiple threads. class methods: * ThreadsWait.all_waits(thread1,...) waits until all of specified threads are terminated. if a block is supplied for the method, evaluates it for each thread termination. * th = ThreadsWait.new(thread1,...) creates synchronization object, specifying thread(s) to wait. methods: * th.threads list threads to be synchronized * th.empty? is there any thread to be synchronized. * th.finished? is there already terminated thread. * th.join(thread1,...) wait for specified thread(s). * th.join_nowait(threa1,...) specifies thread(s) to wait. non-blocking. * th.next_wait waits until any of specified threads is terminated. * th.all_waits waits until all of specified threads are terminated. if a block is supplied for the method, evaluates it for each thread termination.
| ThWait | = | ThreadsWait |
ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.