Results of 1 - 4 of about 4 for getCreatorId (0.001 sec.)
- Thread::getCreatorId — 識別 | PHP 8.3 12297
- Thread::getCreatorId (PECL pthreads >= 2.0.0) Thread::getCreatorId — 識別 説明 public function Thread::getCreatorId (): int このスレッドを作ったスレッドの ID を返します。 パラメータ この関数にはパラメータはありません。 戻り値 数値の ID を返
... 返す <?php class My extends Thread { public function run () { printf ( "%s created by Thread #%lu\n" , __CLASS__ , $this -> getCreatorId ()); } } $my = new My (); $my -> start (); ?> 上の例の出力は以下となります。 My created by Thread #123456778899 他のマニュ ...
-
https://man.mtool.work/php/8.3/thread.getcreatorid.html
- Thread クラス | PHP 8.3 9042
- Thread クラス (PECL pthreads >= 2.0.0) はじめに このオブジェクトの start メソッドが呼ばれると、run メソッドのコードが個別のスレッドで並列処理されます。 run メソッドの実行後は Thread はすぐに終了し、作成元のスレッドに適切な時期に join します
... クラス概要 class Thread extends Threaded implements Countable , Traversable , ArrayAccess { /* メソッド */ public function getCreatorId (): int public static function getCurrentThread (): Thread public static function getCurrentThreadId (): int public functi ... onized ( Closure $block , mixed ...$args ): mixed public function Threaded::wait ( int $timeout = ? ): bool } 目次 Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Th ...
-
https://man.mtool.work/php/8.3/class.thread.html
- Worker クラス | PHP 8.3 8044
- Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません
... lic function stack ( Threaded &$work ): int public function unstack (): int /* 継承したメソッド */ public function Thread::getCreatorId (): int public static function Thread::getCurrentThread (): Thread public static function Thread::getCurrentThreadId (): i ...
-
https://man.mtool.work/php/8.3/class.worker.html
- pthreads | PHP 8.3 7563
- pthreads はじめに pthreads はオブジェクト指向の API で、PHP でマルチスレッド処理を行うのに必要なすべてのツールを提供します。 PHP アプリケーションで、Thread や Worker そして Threaded を作ったり読み書きしたり実行したりできるようになります。 警
... ft — Manipulation Threaded::synchronized — Synchronization Threaded::wait — Synchronization Thread — Thread クラス Thread::getCreatorId — 識別 Thread::getCurrentThread — Identification Thread::getCurrentThreadId — Identification Thread::getThreadId — 識別 Th ...
-
https://man.mtool.work/php/8.3/book.pthreads.html
PREV
1
NEXT