« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for getThreadId (0.001 sec.)
Thread::getThreadId — 識別 | PHP 8.3 12316
Thread::getThreadId (PECL pthreads >= 2.0.0) Thread::getThreadId — 識別 説明 public function Thread::getThreadId (): int このスレッドの ID を返します。 パラメータ この関数にはパラメータはありません。 戻り値 数値の ID を返します。 例 例1 この ... の ID を返す <?php class My extends Thread { public function run () { printf ( "%s is Thread #%lu\n" , __CLASS__ , $this -> getThreadId ()); } } $my = new My (); $my -> start (); ?> 上の例の出力は以下となります。 My is Thread #123456778899 他のマニュアルの関 ...
https://man.mtool.work/php/8.3/thread.getthreadid.html
Thread クラス | PHP 8.3 9005
Thread クラス (PECL pthreads >= 2.0.0) はじめに このオブジェクトの start メソッドが呼ばれると、run メソッドのコードが個別のスレッドで並列処理されます。 run メソッドの実行後は Thread はすぐに終了し、作成元のスレッドに適切な時期に join します ... : int public static function getCurrentThread (): Thread public static function getCurrentThreadId (): int public function getThreadId (): int public function isJoined (): bool public function isStarted (): bool public function join (): bool public function ... Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Thread::isJoined — 状態を検出する Thread::isStarted — 状態を検出する Thread::join — 同期処理 Thread::start — 実行す ...
https://man.mtool.work/php/8.3/class.thread.html
Worker クラス | PHP 8.3 8044
Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません ... tion Thread::getCurrentThread (): Thread public static function Thread::getCurrentThreadId (): int public function Thread::getThreadId (): int public function Thread::isJoined (): bool public function Thread::isStarted (): bool public function Thread::join ...
https://man.mtool.work/php/8.3/class.worker.html
pthreads | PHP 8.3 7581
pthreads はじめに pthreads はオブジェクト指向の API で、PHP でマルチスレッド処理を行うのに必要なすべてのツールを提供します。 PHP アプリケーションで、Thread や Worker そして Threaded を作ったり読み書きしたり実行したりできるようになります。 警 ... Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Thread::isJoined — 状態を検出する Thread::isStarted — 状態を検出する Thread::join — 同期処理 Thread::start — 実行す ...
https://man.mtool.work/php/8.3/book.pthreads.html
PREV 1 NEXT