るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.080秒)
トップページ > バージョン:2.2.0[x] > クエリ:p[x] > クエリ:pty[x] > クエリ:PTY[x] > クラス:ThreadsWait[x]

別のキーワード

  1. pty open
  2. pty spawn
  3. pty getpty
  4. pty check
  5. pty pty

ライブラリ

検索結果

ThreadsWait#empty? -> bool (54958.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...