Results of 1 - 3 of about 3 for getStacked (0.002 sec.)
- Worker::getStacked — Gets the remaining stack size | PHP 8.3 11849
- Worker::getStacked (PECL pthreads >= 2.0.0) Worker::getStacked — Gets the remaining stack size 説明 public function Worker::getStacked (): int Returns the number of tasks left on the stack パラメータ この関数にはパラメータはありません。 戻り
... 値 Returns the number of tasks currently waiting to be executed by the worker 例 例1 A basic example of Worker::getStacked <?php $worker = new Worker (); for ( $i = 0 ; $i < 5 ; ++ $i ) { $worker -> stack (new class extends Threaded {}); } echo ... "There are { $worker -> getStacked ()} stacked tasks\n" ; 上の例の出力は以下となります。 There are 5 stacked tasks 他のマニュアルの関連ページ Python library ...
-
https://man.mtool.work/php/8.3/worker.getstacked.html
- Worker クラス | PHP 8.3 8538
- Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません
... rsable , Countable , ArrayAccess { /* メソッド */ public function collect ( Callable $collector = ? ): int public function getStacked (): int public function isShutdown (): bool public function shutdown (): bool public function stack ( Threaded &$work ): i ... c function Thread::start ( int $options = ? ): bool } 目次 Worker::collect — Collect references to completed tasks Worker::getStacked — Gets the remaining stack size Worker::isShutdown — State Detection Worker::shutdown — Shutdown the worker Worker::stack ...
-
https://man.mtool.work/php/8.3/class.worker.html
- pthreads | PHP 8.3 7478
- pthreads はじめに pthreads はオブジェクト指向の API で、PHP でマルチスレッド処理を行うのに必要なすべてのツールを提供します。 PHP アプリケーションで、Thread や Worker そして Threaded を作ったり読み書きしたり実行したりできるようになります。 警
... — 同期処理 Thread::start — 実行する Worker — Worker クラス Worker::collect — Collect references to completed tasks Worker::getStacked — Gets the remaining stack size Worker::isShutdown — State Detection Worker::shutdown — Shutdown the worker Worker::stack ...
-
https://man.mtool.work/php/8.3/book.pthreads.html
PREV
1
NEXT