るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.041秒)
トップページ > バージョン:2.6.0[x] > ライブラリ:ビルトイン[x] > クエリ:@[x] > クエリ:start[x] > 種類:クラス[x]

別のキーワード

  1. smtp start
  2. net/smtp start
  3. pop start
  4. pop3 start
  5. http start

検索結果

Thread::ConditionVariable (316.0)

スレッドの同期機構の一つである状態変数を実現するクラスです。

...が空になった場合、
あるいは満タンになった場合に Condition Variable を使って wait しています。

require 'thread'

class
TinyQueue
def initialize(max=2)
@max = max
@full = ConditionVariable.new
@empty = ConditionVariable.new
@mutex = Mut...