187件ヒット
[1-100件を表示]
(0.105秒)
ライブラリ
- ビルトイン (18)
- etc (9)
- json (33)
-
net
/ http (40) -
net
/ pop (11) - psych (44)
-
rdoc
/ alias (11) -
rubygems
/ source _ index (11) - thread (4)
- thwait (6)
キーワード
- APOPSession (11)
- BadAlias (11)
- Cache (11)
- ConditionVariable (22)
- HTTPGatewayTimeOut (6)
- HTTPMovedTemporarily (11)
- HTTPRequestEntityTooLarge (6)
- HTTPRequestURITooLarge (11)
- HTTPRequestedRangeNotSatisfiable (6)
- Mapping (11)
- Parser (11)
- Passwd (9)
- Sequence (11)
- State (11)
- ThWait (6)
- UnparserError (11)
検索結果
先頭5件
-
Psych
:: Nodes :: Alias (24039.0) -
YAML の alias http://yaml.org/spec/1.1/#alias を表すクラス。
...YAML の alias http://yaml.org/spec/1.1/#alias を表すクラス。
anchor で別の YAML の要素を指します。
alias は YAML の AST の葉のノードであり、子ノードを持ちません。... -
RDoc
:: Alias (24017.0) -
aliasされたメソッドを表現するクラスです。
...aliasされたメソッドを表現するクラスです。
ライブラリの内部で使用します。... -
Psych
:: BadAlias (12017.0) -
YAML の alias が不正である(本体が見つからない)というエラーを表す例外です。
...YAML の alias が不正である(本体が見つからない)というエラーを表す例外です。... -
JSON
:: Ext :: Generator :: State (9017.0) -
Alias of JSON::State
...Alias of JSON::State... -
Thread
:: ConditionVariable (6055.0) -
スレッドの同期機構の一つである状態変数を実現するクラスです。
...です。
以下も ConditionVariable を理解するのに参考になります。
https://ruby-doc.com/docs/ProgrammingRuby/html/tut_threads.html#UF
=== Condition Variable とは
あるスレッド A が排他領域で動いていたとします。スレッド A は現在空いていない
リ......cv.signal
}
}
以下は 14445 で紹介されている例です。@q が空になった場合、
あるいは満タンになった場合に Condition Variable を使って wait しています。
require 'thread'
class TinyQueue
def initialize(max=2)
@max = max
@......ait(@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... -
ConditionVariable (6017.0)
-
Alias of Thread::ConditionVariable
...Alias of Thread::ConditionVariable... -
Gem
:: Cache (6017.0) -
Alias of Gem::SourceIndex
...Alias of Gem::SourceIndex... -
JSON
:: Ext :: Parser (6017.0) -
Alias of JSON::Parser
...Alias of JSON::Parser... -
JSON
:: UnparserError (6017.0) -
Alias of JSON::GeneratorError
...Alias of JSON::GeneratorError... -
Net
:: APOPSession (6017.0) -
Alias of Net::APOP
...Alias of Net::APOP...