423件ヒット
[401-423件を表示]
(0.070秒)
クラス
-
ARGF
. class (24) - Array (24)
- Binding (11)
- Enumerator (36)
-
Enumerator
:: Lazy (48) - Float (22)
- Integer (72)
- Object (48)
-
Rake
:: FileCreationTask (12) -
Rake
:: FileTask (12) -
Rake
:: Task (12) -
Socket
:: AncillaryData (12) - String (12)
-
Thread
:: ConditionVariable (24) - ThreadsWait (42)
モジュール
- Kernel (12)
キーワード
- * (36)
-
all
_ waits (6) - broadcast (12)
- downto (24)
- empty? (6)
-
enum
_ for (48) - eof (12)
- eof? (12)
- finished? (6)
- join (6)
-
join
_ nowait (6) -
local
_ variables (11) - modified? (12)
- next (12)
-
next
_ float (11) -
next
_ wait (6) -
prev
_ float (11) - signal (12)
- threads (6)
-
to
_ enum (48) - upto (24)
-
with
_ object (24)
検索結果
先頭3件
-
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (7.0) -
指定したスレッドのどれかが終了するまで待ちます。
...se ErrNoFinishedThread nonblock がtrue でかつ、キューが空の時、発生します。
#使用例
require 'thwait'
threads = []
2.times {|i|
threads << Thread.new { sleep i }
}
thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.empty?
th = thall.next_w... -
ThreadsWait
# threads -> Array (7.0) -
同期されるスレッドの一覧を配列で返します。
...同期されるスレッドの一覧を配列で返します。
使用例
require 'thwait'
threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new(*threads)
p thall.threads
#=> [#<Thread:0x21750 sleep>, #<Thread:0x216c4 sleep>, #<... -
Array
# *(sep) -> String (4.0) -
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。
//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
//}
@see Array#join