18件ヒット
[1-18件を表示]
(0.070秒)
ライブラリ
-
rexml
/ parsers / pullparser (12) - thwait (6)
クラス
-
REXML
:: Parsers :: PullParser (12) - ThreadsWait (6)
検索結果
-
REXML
:: Parsers :: PullParser # empty? -> bool (18108.0) -
未処理のイベントが残っていない場合に真を返します。
...未処理のイベントが残っていない場合に真を返します。
@see REXML::Parsers::PullParser#has_next?... -
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (6114.0) -
指定したスレッドのどれかが終了するまで待ちます。
...rue でかつ、キューが空の時、発生します。
#使用例
require 'thwait'
threads = []
2.times {|i|
threads << Thread.new { sleep i }
}
thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.empty?
th = thall.next_wait
p th
end
@see Queue#pop...