るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. openssl new
  2. _builtin new
  3. rexml/document new
  4. resolv new
  5. socket new

キーワード

検索結果

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 でデッドロックす...