60件ヒット
[1-60件を表示]
(0.022秒)
別のキーワード
クラス
- Mutex (2)
-
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10)
モジュール
-
Mutex
_ m (24)
キーワード
- broadcast (12)
-
mu
_ synchronize (12) - signal (12)
検索結果
先頭5件
-
Mutex
_ m # synchronize { . . . } -> object (18119.0) -
self のロックを取得し、ブロックを実行します。実行後に必ずロックを解放します。
...
self のロックを取得し、ブロックを実行します。実行後に必ずロックを解放します。
ブロックで最後に評価した値を返します。... -
Mutex
# synchronize { . . . } -> object (18114.0) -
mutex をロックし、ブロックを実行します。実行後に必ず mutex のロックを解放します。
...ます。実行後に必ず mutex のロックを解放します。
ブロックが最後に評価した値を返します。
@raise ThreadError self 既にカレントスレッドにロックされている場合に発
生します。
また、Signal.#trap... -
Thread
:: Mutex # synchronize { . . . } -> object (18114.0) -
mutex をロックし、ブロックを実行します。実行後に必ず mutex のロックを解放します。
...ます。実行後に必ず mutex のロックを解放します。
ブロックが最後に評価した値を返します。
@raise ThreadError self 既にカレントスレッドにロックされている場合に発
生します。
また、Signal.#trap... -
Mutex
_ m # mu _ synchronize { . . . } -> object (6119.0) -
self のロックを取得し、ブロックを実行します。実行後に必ずロックを解放します。
...
self のロックを取得し、ブロックを実行します。実行後に必ずロックを解放します。
ブロックで最後に評価した値を返します。... -
Thread
:: ConditionVariable # broadcast -> self (120.0) -
状態変数を待っているスレッドをすべて再開します。再開された スレッドは Thread::ConditionVariable#wait で指定した mutex のロックを試みます。
...n 常に self を返します。
//emlist[例][ruby]{
mutex = Mutex.new
cv = ConditionVariable.new
flg = true
3.times {
Thread.start {
mutex.synchronize {
puts "a1"
while (flg)
cv.wait(mutex)
end
puts "a2"
}
}
}
Thread.start {
mutex.synchronize {... -
Thread
:: ConditionVariable # signal -> self (120.0) -
状態変数を待っているスレッドを1つ再開します。再開された スレッドは Thread::ConditionVariable#wait で指定した mutex のロックを試みます。
...n 常に self を返します。
//emlist[例][ruby]{
mutex = Mutex.new
cv = ConditionVariable.new
flg = true
3.times {
Thread.start {
mutex.synchronize {
puts "a1"
while (flg)
cv.wait(mutex)
end
puts "a2"
}
}
}
Thread.start {
mutex.synchronize {...