From: David Vallner Date: 2006-02-12T12:57:44+09:00 Subject: Re: Thread#stop Dňa Piatok 10 Február 2006 21:29 Joel VanderWerf napísal: > As I understand it, a latch would not serve this purpose. A latch stops > newly created threads from running until the latch is opened. In ruby > this would be easy to implement using Thread.stop within the block of > each thread. Then another thread can wakeup those threads as needed: > > th = Thread.new { Thread.stop; do_some_work } > prepare_for_th_to_run > th.wakeup For some strange reason I thought you were using looping worker threads with short execution time. Ah well. David Vallner