別のキーワード
ライブラリ
- ビルトイン (153)
-
io
/ wait (33) - monitor (36)
-
net
/ telnet (4) - open3 (88)
-
shell
/ builtin-command (6) -
shell
/ process-controller (30) -
shell
/ system-command (6) - socket (77)
- syslog (11)
- thread (6)
- thwait (30)
- un (11)
クラス
-
ARGF
. class (9) - IO (55)
- Monitor (3)
-
MonitorMixin
:: ConditionVariable (33) -
Net
:: Telnet (4) -
Shell
:: BuiltInCommand (6) -
Shell
:: ProcessController (30) -
Shell
:: SystemCommand (6) - Socket (44)
-
Thread
:: ConditionVariable (33) - ThreadsWait (30)
モジュール
- Kernel (22)
- Open3 (88)
- Process (62)
- Signal (22)
-
Socket
:: Constants (33) -
Syslog
:: Option (11)
キーワード
-
$ ? (11) -
LOCAL
_ CONNWAIT (22) -
LOG
_ NOWAIT (11) -
MSG
_ WAITALL (22) - Rubyの起動 (6)
-
TCP
_ LINGER2 (22) -
all
_ waits (18) - broadcast (11)
-
connect
_ nonblock (11) - finished? (6)
-
last
_ status (7) -
next
_ wait (6) -
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) -
read
_ nonblock (20) - signal (11)
- trap (22)
- wait2 (11)
- wait? (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ for _ cond (3) -
wait
_ readable (11) -
wait
_ to _ finish _ all _ process _ controllers (6) -
wait
_ until (11) -
wait
_ while (11) -
wait
_ writable (22) - waitall (11)
- waitfor (4)
-
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) - waitpid (11)
- waitpid2 (11)
-
write
_ nonblock (11)
検索結果
先頭5件
-
Shell
:: ProcessController . wait _ to _ finish _ all _ process _ controllers -> () (33501.0) -
@todo
@todo -
MonitorMixin
:: ConditionVariable # wait(timeout = nil) -> bool (24413.0) -
モニタのロックを開放し、現在のスレッドを停止します。
...します。
これを呼ぶスレッドはモニタのロックを保持している必要があります。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。
timeout を与えた場合は最大 ti......す。
これによって危険領域(critical section)上で動作している
スレッドはただ一つになり、排他を実現します。
true を返します。timeout が与えられていて待ち時間が timeout を
越えた場合は false を返します。
@param timeout タイム......での秒数。指定しなかった場合はタイムアウトしません。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionVariable#wait_while, MonitorMixin::ConditionVariable#wait_until... -
Shell
:: ProcessController # wait _ all _ jobs _ execution -> () (24401.0) -
全てのジョブの実行が終わるまで待ちます。
全てのジョブの実行が終わるまで待ちます。 -
Thread
:: ConditionVariable # wait(mutex , timeout = nil) -> self (24401.0) -
mutex のロックを解放し、カレントスレッドを停止します。 Thread::ConditionVariable#signalまたは、 Thread::ConditionVariable#broadcastで送られたシグナルを 受け取ると、mutexのロックを取得し、実行状態となります。
...mutex のロックを解放し、カレントスレッドを停止します。
Thread::ConditionVariable#signalまたは、
Thread::ConditionVariable#broadcastで送られたシグナルを
受け取ると、mutexのロックを取得し、実行状態となります。
@param mutex Thread::Mutex......ます。この場合はシグナルを受け取
らなかった場合でも指定した秒数が経過するとスリープを終了
します。省略するとスリープし続けます。
@see Thread::ConditionVariable#signal, Thread::ConditionVariable#broadcast......mutex のロックを解放し、カレントスレッドを停止します。
Thread::ConditionVariable#signalまたは、
Thread::ConditionVariable#broadcastで送られたシグナルを
受け取ると、mutexのロックを取得し、実行状態となります。
@param mutex Mutex オブ... -
IO
# wait(timeout = nil) -> bool | self | nil (18508.0) -
self が読み込み可能になるまでブロックし、読み込み可能になったら 真値を返します。タイムアウト、もしくはEOFで それ以上読みこめない場合は偽の値を返します。
...self が読み込み可能になるまでブロックし、読み込み可能になったら
真値を返します。タイムアウト、もしくはEOFで
それ以上読みこめない場合は偽の値を返します。
より詳しくは、一度ブロックしてから読み込み可能に......なった場合には
selfを返します。
内部のバッファにデータがある場合には
ブロックせずに true を返します。
内部のバッファとはRubyの処理系が保持管理している
バッファのことです。
つまり、読み込み可能である場合には......trueを返す場合と
selfを返す場合があることに注意してください。
timeout を指定した場合は、指定秒数経過するまでブロックし、タ
イムアウトした場合は nil を返します。
self が EOF に達していれば false を返します。
@param t... -
Process
. # wait(pid = -1 , flags = 0) -> Integer | nil (18436.0) -
pid で指定される特定の子プロセスの終了を待ち、そのプロセスが 終了した時に pid を返します。 wait2, waitpid2 は子プロセスの pid と終了ステータスを表す Process::Status オブジェクトの配列を返します。 ノンブロッキングモードで子プロセスがまだ終了していない時には nil を返します。
...た時に pid を返します。
wait2, waitpid2 は子プロセスの pid と終了ステータスを表す
Process::Status オブジェクトの配列を返します。
ノンブロッキングモードで子プロセスがまだ終了していない時には
nil を返します。
$? に終了......プロセスグループ ID が同じ任意の子プロセスを待ちます。
@param flags Process モジュールの定数 Process::WNOHANG(ノンブロッキングモード)と
Process::WUNTRACED の論理和を指定します。省略したときの値は 0 です。......waitpid(2) か wait4(2) の実装されていないマシンでは
flags はいつも nil または 0 を指定する必要があります。
@raise Errno::ECHILD 子プロセスが存在しない場合に発生します。
//emlist[][ruby]{
pid = fork { sleep 1 }
Process.wait2 # => [... -
MonitorMixin
:: ConditionVariable # wait _ until { . . . } -> () (18407.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。
...を開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果に......よってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@see MonitorMixin::ConditionVariable#wait... -
Shell
:: ProcessController # waiting _ job?(job) -> bool (18400.0) -
指定されたジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
指定されたジョブが存在する場合は真を返します。
そうでない場合は偽を返します。
@param job ジョブを指定します。 -
Shell
:: ProcessController # waiting _ jobs _ exist? -> bool (18400.0) -
待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Socket
:: Constants :: LOCAL _ CONNWAIT -> Integer (18400.0) -
Retrieve peer credentials。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Retrieve peer credentials。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see ip(4freebsd)... -
Socket
:: LOCAL _ CONNWAIT -> Integer (18400.0) -
Retrieve peer credentials。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Retrieve peer credentials。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see ip(4freebsd)...