Results of 1 - 9 of about 9 for collector (0.006 sec.)
- Pool::collect — Collect references to completed tasks | PHP 8.3 12348
- 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 optionall
... y 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
- Worker::collect — Collect references to completed tasks | PHP 8.3 11072
- Worker::collect (PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks 説明 public function Worker::collect ( Callable $collector = ? ): int Allows the worker to collect references determined to be garbage by the o
... ptionally 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 ...
-
https://man.mtool.work/php/8.3/worker.collect.html
- リファレンスを返す | PHP 8.3 10677
- リファレンスを返す リファレンスを返すことは、結合する変数を見付けるために関数を使用し たい場合に便利です。パフォーマンスを向上させるためだけの目的で この機能を用いることは やめてください 。 そのようなことをしなくても、PHP エンジンが自動的に
... けであり、 それ以外は返せません。 返されたリファレンスを使うには、リファレンスを代入しなければなりません。 <?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
- gc_status — ガベージコレクタに関する情報を取得する | PHP 8.3 8915
- 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
- The Pool class | PHP 8.3 7837
- 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 abstraction of the Worker functionality, including the management of references
... ッド */ 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
- Worker クラス | PHP 8.3 7711
- Worker クラス (PECL pthreads >= 2.0.0) はじめに ワーカースレッドには永続コンテキストがあり、たいていの場合はスレッドに対して使えます。 ワーカーを開始させると run メソッドを実行しますが、以下のいずれかの条件を満たすまでスレッドは終了しません
... orker extends Thread implements Traversable , Countable , ArrayAccess { /* メソッド */ public function collect ( Callable $collector = ? ): int public function getStacked (): int public function isShutdown (): bool public function shutdown (): bool public ...
-
https://man.mtool.work/php/8.3/class.worker.html
- Collator::getLocale — collator のロケール名を取得する | PHP 8.3 7711
- Collator::getLocale collator_get_locale (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::getLocale -- collator_get_locale — collator のロケール名を取得する 説明 オブジェクト指向型 public function Collator::getLocale ( int $type
... ): string | false 手続き型 function collator_get_locale ( Collator $object , int $type ): string | false collector のロケール名を取得します。 パラメータ object Collator オブジェクト。 type 妥当なロケールか実際のロケール (それぞれ Locale: ...
-
https://man.mtool.work/php/8.3/collator.getlocale.html
- その他の変更 | PHP 8.3 7441
- その他の変更 PHP コア FFI opcache.preload_user が現在のシステムユーザーに設定されている場合、事前ロードの間に FFI::load() をコールできるようになりました。これより前のバージョンでは、 opcache.preload_user が設定されている場合は、事前ロードの
... => bool "full" => bool "buffer_size" => int "application_time" => float: アプリケーション全体の実行時間を秒単位で示します(collector_time を含みます) "collector_time" => float: 循環参照を回収するのに使った時間を秒単位で示します(destructor_time と free_tim ...
-
https://man.mtool.work/php/8.3/migration83.other-changes.html
- 変更履歴 | PHP 8.3 7100
- 変更履歴 標準添付の拡張モジュールには次のような変更がありました。 Version Function Description 8.6.0 ini_get_all 各ディレクティブについて返される詳細情報の配列に、 builtin_default_value 要素が追加されました。 snmp3_get Net-SNMP ライブラリが
... tus は、 以下の追加のフィールドを返すようになりました: "running", "protected", "full", "buffer_size", "application_time", "collector_time", "destructor_time", and "free_time". get_class get_class を引数なしでコールすると、 E_DEPRECATED が発生するようになり ...
-
https://man.mtool.work/php/8.3/doc.changelog.html
PREV
1
NEXT