るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.021秒)
トップページ > バージョン:2.7.0[x] > クエリ:TRUE[x] > クラス:Monitor[x]

別のキーワード

  1. object true
  2. _builtin true
  3. rb_true
  4. true
  5. true object

ライブラリ

キーワード

検索結果

Monitor#wait_for_cond(cond, timeout) -> true (325.0)

MonitorMixin::ConditionVariable 用の内部メソッドです。

...MonitorMixin::ConditionVariable 用の内部メソッドです。

@param cond Thread::ConditionVariable を指定します。
@param timeout タイムアウトまでの秒数。指定しなかった場合はタイムアウトしません。

@return Ruby 1.9 の頃からのバグで常に true を...
...返します。(16608)

//emlist[例][ruby]{
require 'monitor'
m = Monitor.new
cv = Thread::ConditionVariable.new
m.enter
m.wait_for_cond(cv, 1)
//}...

Monitor#mon_locked? -> bool (52.0)

モニターがロックされているときに true を返します。

モニターがロックされているときに true を返します。

Monitor#mon_owned? -> bool (52.0)

カレントスレッドがモニターをロックしているときに true を返します。

カレントスレッドがモニターをロックしているときに true を返します。