« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 50 for Pool (0.003 sec.)
Collect references to completed tasks 9805
« Pool Pool::__construct » PHP Manual Pool Collect references to completed tasks 検索 Pool::collect (PECL pthreads >= 2.0.0) Pool::collect — Collect references to completed tasks 説明 public function Pool::collect ( Callable $collector = ? ... ): int Allows the pool to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collecto ... ollected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks in the pool to be collected. 変更履歴 バージョン 説明 PECL pthreads 3.0.0 An integer is now returned, and the collector parameter is n ... ow optional. 例 例1 A basic example of Pool::collect() <?php $pool = new Pool ( 4 ); for ( $i = 0 ; $i < 15 ; ++ $i ) { $pool -> submit (new class extends Threaded {} ...
https://man.mtool.work/php/8.3/pool.collect.html
Collect references to completed tasks 9805
« Pool Pool::__construct » PHP Manual Pool Collect references to completed tasks 検索 Pool::collect (PECL pthreads >= 2.0.0) Pool::collect — Collect references to completed tasks 説明 public function Pool::collect ( Callable $collector = ? ... ): int Allows the pool to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collecto ... ollected or not. Only in rare cases should a custom collector need to be used. 戻り値 The number of remaining tasks in the pool to be collected. 変更履歴 バージョン 説明 PECL pthreads 3.0.0 An integer is now returned, and the collector parameter is n ... ow optional. 例 例1 A basic example of Pool::collect() <?php $pool = new Pool ( 4 ); for ( $i = 0 ; $i < 15 ; ++ $i ) { $pool -> submit (new class extends Threaded {} ...
https://man.mtool.work/php/8.3/pool.collect.html
Shutdown all workers 9730
« Pool::resize Pool::submit » PHP Manual Pool Shutdown all workers 検索 Pool::shutdown (PECL pthreads >= 2.0.0) Pool::shutdown — Shutdown all workers 説明 public function Pool::shutdown (): void Shuts down all of the workers in the pool. Th ... d tasks have been executed. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Shutting down a pool <?php class Task extends Threaded { public function run () { usleep ( 500000 ); } } $pool = new Pool ( 4 ); for ( $i = 0 ; ... $i < 10 ; ++ $i ) { $pool -> submit (new Task ()); } $pool -> shutdown (); // blocks until all submitted tasks have finished executing 関連キーワード ... : Pool pool workers shutdown Shutdown submit function down until submitted tasks パラメータ Task new resize Search pthreads void ...
https://man.mtool.work/php/8.3/pool.shutdown.html
Shutdown all workers 9730
« Pool::resize Pool::submit » PHP Manual Pool Shutdown all workers 検索 Pool::shutdown (PECL pthreads >= 2.0.0) Pool::shutdown — Shutdown all workers 説明 public function Pool::shutdown (): void Shuts down all of the workers in the pool. Th ... d tasks have been executed. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Shutting down a pool <?php class Task extends Threaded { public function run () { usleep ( 500000 ); } } $pool = new Pool ( 4 ); for ( $i = 0 ; ... $i < 10 ; ++ $i ) { $pool -> submit (new Task ()); } $pool -> shutdown (); // blocks until all submitted tasks have finished executing 関連キーワード ... : Pool pool workers shutdown Shutdown submit down until submitted tasks Task resize pthreads Shuts block executed Shutting extend ...
https://man.mtool.work/php/8.3/pool.shutdown.html
Creates a new Pool of Workers 9685
« Pool::collect Pool::resize » PHP Manual Pool Creates a new Pool of Workers 検索 Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $clas ... s = ? , array $ctor = ? ) Construct a new pool of workers. Pools lazily create their threads, which means new threads will only be spawned when they are required to exec ... ute tasks. パラメータ size The maximum number of workers for this pool to create class The class for new Workers. If no class is given, then it defaults to the Worker class. ctor An array of ar ... guments to be passed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $someth ...
https://man.mtool.work/php/8.3/pool.construct.html
Creates a new Pool of Workers 9685
« Pool::collect Pool::resize » PHP Manual Pool Creates a new Pool of Workers 検索 Pool::__construct (PECL pthreads >= 2.0.0) Pool::__construct — Creates a new Pool of Workers 説明 public function Pool::__construct ( int $size , string $clas ... s = ? , array $ctor = ? ) Construct a new pool of workers. Pools lazily create their threads, which means new threads will only be spawned when they are required to exec ... ute tasks. パラメータ size The maximum number of workers for this pool to create class The class for new Workers. If no class is given, then it defaults to the Worker class. ctor An array of ar ... guments to be passed to new workers' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Something $something ) { $this -> something = $someth ...
https://man.mtool.work/php/8.3/pool.construct.html
Resize the Pool 9655
« Pool::__construct Pool::shutdown » PHP Manual Pool Resize the Pool 検索 Pool::resize (PECL pthreads >= 2.0.0) Pool::resize — Resize the Pool 説明 public function Pool::resize ( int $size ): void Resize the Pool パラメータ size The maximum ... number of Workers this Pool can create 戻り値 値を返しません。 関連キーワード: Pool Resize resize size construct shutdown pthreads maximum number Work ...
https://man.mtool.work/php/8.3/pool.resize.html
The Pool class 9640
« Collectable::isGarbage Pool::collect » PHP Manual pthreads The Pool class 検索 The Pool class (PECL pthreads >= 2.0.0) はじめに A Pool is a container for, and controller of, an adjustable number of Workers. Pooling provides a higher level ... tion of the Worker functionality, including the management of references in the way required by pthreads. クラス概要 class Pool { /* プロパティ */ protected $ size ; protected $ class ; protected $ workers ; protected $ ctor ; protected $ last ; /* メ ... ask ): int public function submitTo ( int $worker , Threaded $task ): int } プロパティ size maximum number of Workers this Pool can use class the class of the Worker workers references to Workers ctor the arguments for constructor of new Workers last ... offset in workers of the last Worker used 目次 Pool::collect — Collect references to completed tasks Pool::__construct — Creates a new Pool of Workers Pool::resize — Resize t ...
https://man.mtool.work/php/8.3/class.pool.html
Resize the Pool 9640
« Pool::__construct Pool::shutdown » PHP Manual Pool Resize the Pool 検索 Pool::resize (PECL pthreads >= 2.0.0) Pool::resize — Resize the Pool 説明 public function Pool::resize ( int $size ): void Resize the Pool パラメータ size The maximum ... number of Workers this Pool can create 戻り値 値を返しません。 関連キーワード: Pool Resize resize size construct Search shutdown pthreads function int ...
https://man.mtool.work/php/8.3/pool.resize.html
The Pool class 9640
« Collectable::isGarbage Pool::collect » PHP Manual pthreads The Pool class 検索 The Pool class (PECL pthreads >= 2.0.0) はじめに A Pool is a container for, and controller of, an adjustable number of Workers. Pooling provides a higher level ... tion of the Worker functionality, including the management of references in the way required by pthreads. クラス概要 class Pool { /* プロパティ */ protected $ size ; protected $ class ; protected $ workers ; protected $ ctor ; protected $ last ; /* メ ... ask ): int public function submitTo ( int $worker , Threaded $task ): int } プロパティ size maximum number of Workers this Pool can use class the class of the Worker workers references to Workers ctor the arguments for constructor of new Workers last ... offset in workers of the last Worker used 目次 Pool::collect — Collect references to completed tasks Pool::__construct — Creates a new Pool of Workers Pool::resize — Resize t ...
https://man.mtool.work/php/8.3/class.pool.html
PREV 1 2 3 4 5 NEXT