diff --git a/appendices/ini.core.xml b/appendices/ini.core.xml index 00156b766d..abdb9ac438 100644 --- a/appendices/ini.core.xml +++ b/appendices/ini.core.xml @@ -1,6 +1,6 @@ - +
@@ -817,8 +817,8 @@ Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unk このオプションを無効にすると、$_POST$_FILES に値が入らなくなります。 - この場合、投稿されたデータを読むには、ストリームラッパー - php://input を使う以外の方法はなくなります。 + リクエストボディは php://input に残ったままになり、 + 手動で読み取るか request_parse_body でパースして取得できます。 これは、リクエストをプロキシしたり POST データを処理する際のメモリ消費量を抑えたりする際に有用です。 diff --git a/appendices/migration84/new-functions.xml b/appendices/migration84/new-functions.xml index 04914f1eb6..a7be12897d 100644 --- a/appendices/migration84/new-functions.xml +++ b/appendices/migration84/new-functions.xml @@ -1,6 +1,6 @@ - + 新しく追加された関数 @@ -123,6 +123,7 @@ pcntl_getcpuaffinity pcntl_getqos_class pcntl_setns + pcntl_setqos_class pcntl_waitid diff --git a/reference/pcntl/functions/pcntl_getqos_class.xml b/reference/pcntl/functions/pcntl_getqos_class.xml new file mode 100644 index 0000000000..15684bf589 --- /dev/null +++ b/reference/pcntl/functions/pcntl_getqos_class.xml @@ -0,0 +1,72 @@ + + + + + + pcntl_getqos_class + 現在のスレッドの QoS クラスを取得する + + + + &reftitle.description; + + Pcntl\QosClasspcntl_getqos_class + + + + QoS クラスを取得します。 + + + この関数は、Apple のプラットフォームでのみ利用可能です。 + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Pcntl\QosClass を返します。 + + + + + &reftitle.errors; + + 内部の pthread_get_qos_class_np() の呼び出しが失敗した場合、 + Error をスローします。 + + + + + &reftitle.seealso; + + pcntl_setqos_class + Pcntl\QosClass + + + + + diff --git a/reference/pcntl/functions/pcntl_setqos_class.xml b/reference/pcntl/functions/pcntl_setqos_class.xml new file mode 100644 index 0000000000..2ca65e1716 --- /dev/null +++ b/reference/pcntl/functions/pcntl_setqos_class.xml @@ -0,0 +1,143 @@ + + + + + + pcntl_setqos_class + 現在のスレッドの QoS クラスを設定する + + + + &reftitle.description; + + voidpcntl_setqos_class + Pcntl\QosClassqos_classPcntl\QosClass::Default + + + QoS クラスを設定します。 + + + + + &reftitle.parameters; + + + qos_class + + + 現在のスレッドに割り当てる Quality of Service クラス。 + オペレーティングシステムは、これを CPU 時間の割り当て、 + I/O 優先度、電力消費をスケジューリングする際のヒントとして使用し、 + 上位のクラスは下位のクラスに割り込んで実行されます。 + 利用可能なケースについては、Pcntl\QosClass + を参照してください。 + + + + + Pcntl\QosClass::UserInteractive + + + 最も高い優先度です。ユーザーインターフェイスを直接駆動する処理向けで、 + イベント処理や描画など、体感的な遅延を避けるために + ほぼ瞬時に完了する必要があるものを想定しています。 + + + + + Pcntl\QosClass::UserInitiated + + + 高い優先度で、UserInteractive のすぐ下です。 + ユーザーが明示的に開始し、結果を待っている処理向けで、 + 数秒以内に完了することが期待されるものを想定しています。 + + + + + Pcntl\QosClass::Default + + + 標準の優先度で、より具体的なクラスが該当しない場合に使用します。 + より優先度の高い処理の後に実行されますが、 + UtilityBackground + よりは先に実行されます。 + + + + + Pcntl\QosClass::Utility + + + 低めの優先度です。ダウンロード、インポート、 + 一括計算など、ユーザーは認識しているものの、 + 結果を待ってはいない長時間の処理向けです。 + 省電力なスケジューリングが行われます。 + + + + + Pcntl\QosClass::Background + + + 最も低い優先度です。プリフェッチ、インデックス作成、 + メンテナンスなど、ユーザーが認識していない処理向けです。 + 電力効率を強く重視して最適化されており、 + システムが高負荷の場合は実行が後回しにされる可能性があります。 + + + + + + + + + + この関数は、Apple のプラットフォームでのみ利用可能です。 + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + 内部の pthread_set_qos_class_self_np() の呼び出しが失敗した場合、 + Error をスローします。 + + + + + &reftitle.seealso; + + pcntl_getqos_class + Pcntl\QosClass + + + + +