るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.019秒)
トップページ > バージョン:2.3.0[x] > クエリ:read[x] > クエリ:current[x] > クエリ:empty?[x]

別のキーワード

  1. drb current_server
  2. win32/registry hkey_current_config
  3. win32/registry hkey_current_user
  4. fiber current
  5. _builtin current

ライブラリ

クラス

検索結果

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