« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for collector (0.002 sec.)
Collect references to completed tasks 11787
« 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 collector that returns a boolean on whether the task can be collected or not. Only in rar ... e 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 now optional. 例 例1 A basic example of Pool::collect() <?php $pool = new Pool ( 4 ); for ( $i = 0 ; $i < 15 ...
https://man.mtool.work/php/8.3/pool.collect.html
Collect references to completed tasks 11736
« 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 collector that returns a boolean on whether the task can be collected or not. Only in rar ... e 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 now optional. 例 例1 A basic example of Pool::collect() <?php $pool = new Pool ( 4 ); for ( $i = 0 ; $i < 15 ...
https://man.mtool.work/php/8.3/pool.collect.html
Collect references to completed tasks 10638
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $collector ... lector = ? ): int Allows the worker to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rar ... e cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's stack to be collected. 例 例1 A basic example of Wor ... ected There are now 0 tasks on the stack to be collected 関連キーワード: tasks worker collect Worker collected stack There collector references Collect completed remaining echo Callable new currently now Search getStacked pthreads ...
https://man.mtool.work/php/8.3/worker.collect.html
Collect references to completed tasks 10569
« Worker Worker::getStacked » PHP Manual Worker Collect references to completed tasks 検索 Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $collector ... lector = ? ): int Allows the worker to collect references determined to be garbage by the optionally given collector. パラメータ collector A Callable collector that returns a boolean on whether the task can be collected or not. Only in rar ... e cases should a custom collector need to be used. 戻り値 The number of remaining tasks on the worker's stack to be collected. 例 例1 A basic example of Wor ... ected There are now 0 tasks on the stack to be collected 関連キーワード: tasks worker collect Worker collected stack There collector references Collect completed remaining Callable currently getStacked pthreads Allows determined garbage optionally given b ...
https://man.mtool.work/php/8.3/worker.collect.html
リファレンスを返す 10071
« リファレンス渡し リファレンスの解除 » PHP Manual リファレンスの説明 リファレンスを返す 検索 リファレンスを返す リファレンスを返すことは、結合する変数を見付けるために関数を使用し たい場合に便利です。パフォーマンスを向上させるためだけの目的 ... けであり、 それ以外は返せません。 返されたリファレンスを使うには、リファレンスを代入しなければなりません。 <?php function & collector () { static $collection = array(); return $collection ; } $collection = & collector (); // $collection は、関数内の static ... な配列を指すリファレンスになりました。 $collection [] = 'foo' ; print_r ( collector ()); 上の例の出力は以下となります。 Array ( [0] => foo ) 注意 : $collection = collector(); のような形で、 & を使わずに代入 ... スではありません。 返されたリファレンスを、リファレンスを要求する別の関数に渡すには、 この構文を使います。 <?php function & collector () { static $collection = array(); return $collection ; } array_push ( collector (), 'foo' ); 注意 : array_push(&collector ...
https://man.mtool.work/php/8.3/language.references.return.html
リファレンスを返す 10020
« リファレンス渡し リファレンスの解除 » PHP Manual リファレンスの説明 リファレンスを返す 検索 リファレンスを返す リファレンスを返すことは、結合する変数を見付けるために関数を使用し たい場合に便利です。パフォーマンスを向上させるためだけの目的 ... けであり、 それ以外は返せません。 返されたリファレンスを使うには、リファレンスを代入しなければなりません。 <?php function & collector () { static $collection = array(); return $collection ; } $collection = & collector (); // $collection は、関数内の static ... な配列を指すリファレンスになりました。 $collection [] = 'foo' ; print_r ( collector ()); 上の例の出力は以下となります。 Array ( [0] => foo ) 注意 : $collection = collector(); のような形で、 & を使わずに代入 ... スではありません。 返されたリファレンスを、リファレンスを要求する別の関数に渡すには、 この構文を使います。 <?php function & collector () { static $collection = array(); return $collection ; } array_push ( collector (), 'foo' ); 注意 : array_push(&collector ...
https://man.mtool.work/php/8.3/language.references.return.html
ガベージコレクタに関する情報を取得する 8750
« gc_mem_caches get_cfg_var » PHP Manual PHP オプション/情報 関数 ガベージコレクタに関する情報を取得する 検索 gc_status (PHP 7 >= 7.3.0, PHP 8) gc_status — ガベージコレクタに関する情報を取得する 説明 function gc_status (): array ガベージコレ ... つ連想配列を返します: "runs" "collected" "threshold" "roots" "running" "protected" "full" "buffer_size" "application_time" "collector_time" "destructor_time" "free_time" 変更履歴 バージョン 説明 8.3.0 gc_status() は、 以下の追加のフィールドを返すようになり ... ました: "running" , "protected" , "full" , "buffer_size" , "application_time" , "collector_time" , "destructor_time" , and "free_time" . 例 例1 gc_status() の使い方 <?php // create object tree that needs gc collec ... 2) ["threshold"]=> int(50001) ["buffer_size"]=> int(131072) ["roots"]=> int(0) ["application_time"]=> float(0.031182458) ["collector_time"]=> float(0.020106291) ["destructor_time"]=> float(0) ["free_time"]=> float(0.003707167) } 参考 ガベージコレクション ...
https://man.mtool.work/php/8.3/function.gc-status.html
ガベージコレクタに関する情報を取得する 8699
« gc_mem_caches get_cfg_var » PHP Manual PHP オプション/情報 関数 ガベージコレクタに関する情報を取得する 検索 gc_status (PHP 7 >= 7.3.0, PHP 8) gc_status — ガベージコレクタに関する情報を取得する 説明 function gc_status (): array ガベージコレ ... つ連想配列を返します: "runs" "collected" "threshold" "roots" "running" "protected" "full" "buffer_size" "application_time" "collector_time" "destructor_time" "free_time" 変更履歴 バージョン 説明 8.3.0 gc_status() は、 以下の追加のフィールドを返すようになり ... ました: "running" , "protected" , "full" , "buffer_size" , "application_time" , "collector_time" , "destructor_time" , and "free_time" . 例 例1 gc_status() の使い方 <?php // create object tree that needs gc collec ... 2) ["threshold"]=> int(50001) ["buffer_size"]=> int(131072) ["roots"]=> int(0) ["application_time"]=> float(0.031182458) ["collector_time"]=> float(0.020106291) ["destructor_time"]=> float(0) ["free_time"]=> float(0.003707167) } 参考 ガベージコレクション ...
https://man.mtool.work/php/8.3/function.gc-status.html
collator のロケール名を取得する 7875
« Collator::getErrorMessage Collator::getSortKey » PHP Manual Collator collator のロケール名を取得する 検索 Collator::getLocale collator_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getLocale -- collator_get_local ... ocale ( int $type ): string | false 手続き型 function collator_get_locale ( Collator $object , int $type ): string | false collector のロケール名を取得します。 パラメータ object Collator オブジェクト。 type 妥当なロケールか実際のロケール (それぞれ Locale: ... ale Collator ロケール Locale getLocale type coll 実際 create Valid getErrorMessage getSortKey intl オブジェクト指向 手続き collector 妥当 照合 ルール ベース インスタンス printf nActual Requested ...
https://man.mtool.work/php/8.3/collator.getlocale.html
The Pool class 7378
« 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 ... ッド */ public function __construct ( int $size , string $class = ? , array $ctor = ? ) public function collect ( Callable $collector = ? ): int public function resize ( int $size ): void public function shutdown (): void public function submit ( Threaded ...
https://man.mtool.work/php/8.3/class.pool.html
PREV 1 2 NEXT