1件ヒット
[1-1件を表示]
(0.034秒)
別のキーワード
クラス
- ThreadsWait (1)
検索結果
-
ThreadsWait
# threads -> Array (346.0) -
同期されるスレッドの一覧を配列で返します。
...同期されるスレッドの一覧を配列で返します。
使用例
require 'thwait'
threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new(*threads)
p thall.threads
#=> [#<Thread:0x21750 sleep>, #<Thread:0x216c4 sleep>, #<...