1件ヒット
[1-1件を表示]
(0.022秒)
別のキーワード
ライブラリ
- thwait (1)
クラス
- ThreadsWait (1)
検索結果
-
ThreadsWait
# empty? -> bool (63358.0) -
同期されるスレッドが存在するならば true をかえします。
同期されるスレッドが存在するならば true をかえします。
使用例
require 'thwait'
threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new
p thall.threads.empty? #=> true
thall.join(*threads)
p thall.threads.empty? #=> false