2件ヒット
[1-2件を表示]
(0.016秒)
検索結果
-
MonitorMixin
# new _ cond -> MonitorMixin :: ConditionVariable (18316.0) -
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。
...モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。... -
MonitorMixin
# mon _ enter -> () (31.0) -
モニターをロックします。
...ロックした回数だけ mon_exit を呼ばなければモニターは
解放されません。
//emlist[例][ruby]{
require 'monitor'
buf = []
buf.extend(MonitorMixin)
buf.mon_enter
buf.mon_enter
//}
Mutex#lock ではデッドロックが起きます。
//emlist[Mutex でデッドロックす...