るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.048秒)
トップページ > クエリ:IO.new[x] > クエリ:gets[x] > バージョン:2.7.0[x] > クエリ:accept[x] > クエリ:prerelease?[x] > クエリ:accept_nonblock[x] > クラス:Thread::ConditionVariable[x]

別のキーワード

  1. _builtin gets
  2. cgi accept_charset
  3. socket accept_nonblock
  4. socket accept
  5. irb/input-method gets

ライブラリ

キーワード

検索結果

Thread::ConditionVariable.new -> Thread::ConditionVariable (63607.0)

状態変数を生成して返します。

状態変数を生成して返します。

Thread::ConditionVariable#broadcast -> self (9040.0)

状態変数を待っているスレッドをすべて再開します。再開された スレッドは Thread::ConditionVariable#wait で指定した mutex のロックを試みます。

...状態変数を待っているスレッドをすべて再開します。再開された
スレッドは Thread::ConditionVariable#wait
で指定した mutex のロックを試みます。

@return 常に self を返します。

//emlist[例][ruby]{
mutex = Mutex.new
cv = ConditionVariable.new
flg...

Thread::ConditionVariable#signal -> self (9040.0)

状態変数を待っているスレッドを1つ再開します。再開された スレッドは Thread::ConditionVariable#wait で指定した mutex のロックを試みます。

...状態変数を待っているスレッドを1つ再開します。再開された
スレッドは Thread::ConditionVariable#wait
で指定した mutex のロックを試みます。

@return 常に self を返します。

//emlist[例][ruby]{
mutex = Mutex.new
cv = ConditionVariable.new
flg = tru...