ライブラリ
- ビルトイン (224)
- monitor (54)
-
net
/ telnet (4) - open3 (168)
-
shell
/ builtin-command (6) -
shell
/ process-controller (30) -
shell
/ system-command (6) - socket (132)
- sync (24)
- syslog (12)
- thread (8)
- thwait (30)
クラス
-
ARGF
. class (10) - IO (24)
- Monitor (6)
-
MonitorMixin
:: ConditionVariable (36) -
Net
:: Telnet (4) -
Process
:: Status (12) -
Shell
:: BuiltInCommand (6) -
Shell
:: ProcessController (30) -
Shell
:: SystemCommand (6) - Socket (72)
-
Thread
:: ConditionVariable (36) -
Thread
:: Queue (10) - ThreadsWait (24)
モジュール
- Kernel (12)
- Open3 (168)
- Process (80)
- Signal (24)
-
Socket
:: Constants (60) -
Sync
_ m (24) -
Syslog
:: Option (12)
キーワード
-
$ ? (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - >> (12)
- ConditionVariable (12)
-
LOCAL
_ CONNWAIT (24) -
LOG
_ NOWAIT (12) -
MSG
_ DONTWAIT (24) -
MSG
_ PROXY (24) -
MSG
_ WAITALL (24) - Monitor (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyの起動 (7)
- Status (12)
-
TCP
_ LINGER2 (24) - ThWait (6)
-
all
_ waits (12) - broadcast (12)
- close (10)
-
connect
_ nonblock (12) -
last
_ status (8) -
next
_ wait (6) -
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - popen2 (24)
- popen2e (24)
- popen3 (24)
-
rb
_ feature _ p (12) -
rb
_ thread _ schedule (12) -
rb
_ thread _ wait _ for (12) -
rb
_ thread _ wait _ other _ threads (12) -
read
_ nonblock (22) -
ruby 1
. 8 . 4 feature (12) - setpgrp (12)
- signal (12)
-
sync
_ upgrade _ waiting (6) -
sync
_ upgrade _ waiting= (6) -
sync
_ waiting (6) -
sync
_ waiting= (6) - threads (6)
- trap (24)
- wait2 (12)
- wait? (12)
-
wait
_ all _ jobs _ execution (6) -
wait
_ for _ cond (6) -
wait
_ to _ finish _ all _ process _ controllers (6) -
wait
_ until (12) -
wait
_ while (12) - waitall (12)
- waitfor (4)
-
waiting
_ job? (6) -
waiting
_ jobs (6) -
waiting
_ jobs _ exist? (6) - waitpid (12)
- waitpid2 (12)
-
write
_ nonblock (12)
検索結果
先頭5件
-
Process
. # wait(pid = -1 , flags = 0) -> Integer | nil (21158.0) -
pid で指定される特定の子プロセスの終了を待ち、そのプロセスが 終了した時に pid を返します。 wait2, waitpid2 は子プロセスの pid と終了ステータスを表す Process::Status オブジェクトの配列を返します。 ノンブロッキングモードで子プロセスがまだ終了していない時には nil を返します。
...。
wait2, waitpid2 は子プロセスの pid と終了ステータスを表す
Process::Status オブジェクトの配列を返します。
ノンブロッキングモードで子プロセスがまだ終了していない時には
nil を返します。
$? に終了した子プロセスの Proces......セスグループ 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(timeout = nil) -> bool (21113.0) -
モニタのロックを開放し、現在のスレッドを停止します。
...。
これを呼ぶスレッドはモニタのロックを保持している必要があります。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。
timeout を与えた場合は最大 timeout 秒......します。
実行を再開したスレッドはモニタのロックを保持した状態になります。
これによって危険領域(critical section)上で動作している
スレッドはただ一つになり、排他を実現します。
true を返します。timeout が与えられ......での秒数。指定しなかった場合はタイムアウトしません。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionVariable#wait_while, MonitorMixin::ConditionVariable#wait_until... -
Thread
:: ConditionVariable # wait(mutex , timeout = nil) -> self (21107.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 オブ... -
Shell
:: ProcessController . wait _ to _ finish _ all _ process _ controllers -> () (15201.0) -
@todo
@todo -
Sync
_ m # sync _ upgrade _ waiting -> [Thread] (15200.0) -
@todo
@todo -
Sync
_ m # sync _ upgrade _ waiting=(arr) (15200.0) -
@todo
@todo -
Sync
_ m # sync _ waiting -> [Thread] (15200.0) -
@todo
@todo -
Sync
_ m # sync _ waiting=(arr) (15200.0) -
@todo
@todo -
Monitor
# wait _ for _ cond(cond , timeout) -> bool (12329.0) -
MonitorMixin::ConditionVariable 用の内部メソッドです。
...MonitorMixin::ConditionVariable 用の内部メソッドです。
@param cond Thread::ConditionVariable を指定します。
@param timeout タイムアウトまでの秒数。指定しなかった場合はタイムアウトしません。
@return タイムアウトしたときは false を返し......ます。それ以外は true を返します。
//emlist[例][ruby]{
require 'monitor'
m = Monitor.new
cv = Thread::ConditionVariable.new
m.enter
m.wait_for_cond(cv, 1)
//}... -
Monitor
# wait _ for _ cond(cond , timeout) -> true (12329.0) -
MonitorMixin::ConditionVariable 用の内部メソッドです。
...MonitorMixin::ConditionVariable 用の内部メソッドです。
@param cond Thread::ConditionVariable を指定します。
@param timeout タイムアウトまでの秒数。指定しなかった場合はタイムアウトしません。
@return Ruby 1.9 の頃からのバグで常に true を......返します。(16608)
//emlist[例][ruby]{
require 'monitor'
m = Monitor.new
cv = Thread::ConditionVariable.new
m.enter
m.wait_for_cond(cv, 1)
//}... -
Shell
:: ProcessController # wait _ all _ jobs _ execution -> () (12201.0) -
全てのジョブの実行が終わるまで待ちます。
全てのジョブの実行が終わるまで待ちます。 -
Socket
:: Constants :: LOCAL _ CONNWAIT -> Integer (12200.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 (12200.0) -
Retrieve peer credentials。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Retrieve peer credentials。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see ip(4freebsd)...