るりまサーチ

最速Rubyリファレンスマニュアル検索!
103件ヒット [101-103件を表示] (0.058秒)

別のキーワード

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

ライブラリ

クラス

モジュール

検索結果

<< < 1 2 >>

ThreadsWait.new(*threads) -> ThreadsWait (7.0)

指定されたスレッドの終了をまつための、スレッド同期オブジェクトをつくります。

...つもしくは複数指定します。

使用例
require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
thall.all_waits{|th|
printf("end %s\n", th.inspect)
}

# 出力例
#=> #<Thread:0x214b...
<< < 1 2 >>