24件ヒット
[1-24件を表示]
(0.009秒)
別のキーワード
キーワード
- ConditionVariable (12)
- FlagCountError (12)
検索結果
-
Net
:: IMAP :: FlagCountError (6007.0) -
サーバからのレスポンスに含まれるフラグが多すぎるときに発生する例外です。
...サーバからのレスポンスに含まれるフラグが多すぎるときに発生する例外です。
この上限は Net::IMAP.max_flag_count= で設定します。... -
Thread
:: ConditionVariable (31.0) -
スレッドの同期機構の一つである状態変数を実現するクラスです。
...d'
class TinyQueue
def initialize(max=2)
@max = max
@full = ConditionVariable.new
@empty = ConditionVariable.new
@mutex = Mutex.new
@q = []
end
def count
@q.size
end
def enq(v)
@mutex.synchronize{
@full.wait(@mutex) if count......== @max
@q.push v
@empty.signal if count == 1
}
end
def deq
@mutex.synchronize{
@empty.wait(@mutex) if count == 0
v = @q.shift
@full.signal if count == (@max - 1)
v
}
end
alias send enq
alias recv deq
end
if...