« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for getCurrentThread (0.001 sec.)
Thread::getCurrentThread — Identification | PHP 8.3 12353
Thread::getCurrentThread (PECL pthreads >= 2.0.0) Thread::getCurrentThread — Identification 説明 public static function Thread::getCurrentThread (): Thread Return a reference to the currently executing Thread パラメータ この関数にはパラメー ... 例 例1 Return the currently executing Thread <?php class My extends Thread { public function run () { var_dump ( Thread :: getCurrentThread ()); } } $my = new My (); $my -> start (); ?> 上の例の出力は以下となります。 object(My)#2 (0) { } ...
https://man.mtool.work/php/8.3/thread.getcurrentthread.html
Thread クラス | PHP 8.3 8876
Thread クラス (PECL pthreads >= 2.0.0) はじめに このオブジェクトの start メソッドが呼ばれると、run メソッドのコードが個別のスレッドで並列処理されます。 run メソッドの実行後は Thread はすぐに終了し、作成元のスレッドに適切な時期に join します ... lements Countable , Traversable , ArrayAccess { /* メソッド */ public function getCreatorId (): int public static function getCurrentThread (): Thread public static function getCurrentThreadId (): int public function getThreadId (): int public function isJoined ... xed ...$args ): mixed public function Threaded::wait ( int $timeout = ? ): bool } 目次 Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Thread::isJoined — 状態を検出する ...
https://man.mtool.work/php/8.3/class.thread.html
Worker クラス | PHP 8.3 8062
Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません ... unction unstack (): int /* 継承したメソッド */ public function Thread::getCreatorId (): int public static function Thread::getCurrentThread (): Thread public static function Thread::getCurrentThreadId (): int public function Thread::getThreadId (): int public fu ...
https://man.mtool.work/php/8.3/class.worker.html
pthreads | PHP 8.3 7655
pthreads はじめに pthreads はオブジェクト指向の API で、PHP でマルチスレッド処理を行うのに必要なすべてのツールを提供します。 PHP アプリケーションで、Thread や Worker そして Threaded を作ったり読み書きしたり実行したりできるようになります。 警 ... synchronized — Synchronization Threaded::wait — Synchronization Thread — Thread クラス Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Thread::isJoined — 状態を検出する ...
https://man.mtool.work/php/8.3/book.pthreads.html
PREV 1 NEXT