るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
13件ヒット [1-13件を表示] (0.064秒)
トップページ > バージョン:2.4.0[x] > クエリ:@[x] > クエリ:broadcast[x]

別のキーワード

  1. socket so_broadcast
  2. socket iff_broadcast
  3. socket inaddr_broadcast
  4. conditionvariable broadcast
  5. monitor broadcast

ライブラリ

モジュール

キーワード

検索結果

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

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

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

@return 常に self を返します。

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

3.times {
Thread.start {
mutex.synchronize {
puts "a1"
while (flg)
cv.wait(mutex)
...

MonitorMixin::ConditionVariable#broadcast -> () (54322.0)

その条件変数で 待っている全てのスレッドの実行を再開します。

その条件変数で
待っている全てのスレッドの実行を再開します。

@see MonitorMixin::ConditionVariable#signal

Socket::Constants::INADDR_BROADCAST -> Integer (18370.0)

The network broadcast address。 IPv4のブロードキャストアドレス 255.255.255.255 に対応する整数です。

The network broadcast address。
IPv4のブロードキャストアドレス 255.255.255.255 に対応する整数です。

@see netinet/in.h(header), ip(7linux), ip(4freebsd)

Socket::Constants::SO_BROADCAST -> Integer (18370.0)

Permit sending of broadcast messages。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Permit sending of broadcast messages。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET

Socket::INADDR_BROADCAST -> Integer (18370.0)

The network broadcast address。 IPv4のブロードキャストアドレス 255.255.255.255 に対応する整数です。

The network broadcast address。
IPv4のブロードキャストアドレス 255.255.255.255 に対応する整数です。

@see netinet/in.h(header), ip(7linux), ip(4freebsd)

絞り込み条件を変える

Socket::SO_BROADCAST -> Integer (18370.0)

Permit sending of broadcast messages。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Permit sending of broadcast messages。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET

Thread::ConditionVariable#wait(mutex, timeout = nil) -> self (121.0)

mutex のロックを解放し、カレントスレッドを停止します。 Thread::ConditionVariable#signalまたは、 Thread::ConditionVariable#broadcastで送られたシグナルを 受け取ると、mutexのロックを取得し、実行状態となります。

mutex のロックを解放し、カレントスレッドを停止します。
Thread::ConditionVariable#signalまたは、
Thread::ConditionVariable#broadcastで送られたシグナルを
受け取ると、mutexのロックを取得し、実行状態となります。

@param mutex Mutex オブジェクトを指定します。

@param timeout スリープする秒数を指定します。この場合はシグナルを受け取
らなかった場合でも指定した秒数が経過するとスリープを終了
します。省略するとスリープし続け...

Socket::Constants::IP_ONESBCAST -> Integer (115.0)

Force outgoing broadcast datagrams to have the undirected broadcast address。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Force outgoing broadcast datagrams to have the undirected broadcast address。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP, ip(4freebsd)

Socket::IP_ONESBCAST -> Integer (115.0)

Force outgoing broadcast datagrams to have the undirected broadcast address。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Force outgoing broadcast datagrams to have the undirected broadcast address。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP, ip(4freebsd)

MonitorMixin::ConditionVariable#wait(timeout = nil) -> bool (73.0)

モニタのロックを開放し、現在のスレッドを停止します。

モニタのロックを開放し、現在のスレッドを停止します。

これを呼ぶスレッドはモニタのロックを保持している必要があります。

MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。

timeout を与えた場合は最大 timeout 秒まで停止した後にスレッドを
再開します。

実行を再開したスレッドはモニタのロックを保持した状態になります。
これによって危険領域(critical section)上で動作している
スレッドはただ一つになり...

絞り込み条件を変える

MonitorMixin::ConditionVariable#wait_while { ... } -> () (55.0)

モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たしている間停止します。

モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たしている間停止します。

MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。

@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionV...

MonitorMixin::ConditionVariable#signal -> () (37.0)

その条件変数で待っているスレッドがあれば実行を再開させます。

その条件変数で待っているスレッドがあれば実行を再開させます。

複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。

@see MonitorMixin::ConditionVariable#broadcast

MonitorMixin::ConditionVariable#wait_until { ... } -> () (37.0)

モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。

モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。

MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。

@see MonitorMixin::ConditionVariable#wait