Results of 1 - 10 of about 51 for pthreads (0.001 sec.)
- 定義済み定数 | PHP 8.3 16381
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 PTHREADS_INHERIT_ALL ( int ) The default options for all Threads, causes pthreads
... eads to copy the environment when new Threads are started PTHREADS_INHERIT_NONE ( int ) Do not inherit anything when new Threads are started PTHREADS_INHERIT_INI ( int ) Inherit INI entries ... when new Threads are started PTHREADS_INHERIT_CONSTANTS ( int ) Inherit user declared constants when new Threads are started PTHREADS_INHERIT_CLASSES ( int ) In ... herit user declared classes when new Threads are started PTHREADS_INHERIT_FUNCTIONS ( int ) Inherit user declared functions when new Threads are started PTHREADS_INHERIT_INCLUDES ( int ) I ...
-
https://man.mtool.work/php/8.3/pthreads.constants.html
- pthreads | PHP 8.3 9501
- pthreads はじめに pthreads はオブジェクト指向の API で、PHP でマルチスレッド処理を行うのに必要なすべてのツールを提供します。 PHP アプリケーションで、Thread や Worker そして Threaded を作ったり読み書きしたり実行したりできるようになります。 警
... ジュールはメンテナンスされておらず、終了していると考えられます。 ヒント parallel を代わりに使うことも検討してください。 警告 pthreads 拡張モジュールは、Webサーバー環境では使えません。 よって、PHP でのスレッド処理は CLIベースのアプリケーションに限られていま ... す。 警告 ptheads (v3) は PHP 7.2+ で使えます。 これは ZTS モードが 7.0 と 7.1 では安全でないためです。 Threaded クラスが、pthreads が実行できる機能のもとになります。 このクラスは同期のメソッドとプログラマにとって便利なインタフェイスをいくつか公開していま ... スのオブジェクトは通常の PHP オブジェクトです。 よって、そのインスタンスをコンテキスト間で共有してはいけません。 Volatile は pthreads v3 で登場した新しいクラスです。 これは Threaded クラスのプロパティを変更可能にするために使います (なぜなら、これらはデフォ ...
-
https://man.mtool.work/php/8.3/book.pthreads.html
- Worker::unstack — Unstacking work | PHP 8.3 9172
- Worker::unstack (PECL pthreads >= 2.0.0) Worker::unstack — Unstacking work 説明 public function Worker::unstack (): int Removes the first task (the oldest one) in the stack. パラメータ この関数にはパラメータはありません。 戻り値 The new siz
... e of the stack. 変更履歴 バージョン 説明 PECL pthreads 3.0.0 The parameter to specify the task to unstack has been removed. Now, only the first task in the stack is removed. 例 ... $work )); var_dump ( $my -> unstack ()); 上の例の出力は以下となります。 int(1) int(0) 他のマニュアルの関連ページ Linux JM pthreads(7) Docker docker stack Docker docker stack Docker docker stack ls Python library Docker docker stack rm ...
-
https://man.mtool.work/php/8.3/worker.unstack.html
- Pool::collect — Collect references to completed tasks | PHP 8.3 9007
- 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
... 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() < ... > collect ()); // blocks until all tasks have finished executing $pool -> shutdown (); 他のマニュアルの関連ページ Linux JM pthreads(7) DuckDB PostgreSQL Extension Functions DuckDB I/O Django 1.5.12 DuckDB PostgreSQL Extension Connection Pool DuckDB Conne ...
-
https://man.mtool.work/php/8.3/pool.collect.html
- インストール手順 | PHP 8.3 9007
- インストール手順 pthreads のリリースは PECL でホストされており、ソースコードは » github にあります。 最も簡単なインストール方法は、PECL の » https://pecl.php.net/package/pthreads からのインストールです。 Windows ユーザー用のビルド済みバイナ
... をパスの通った場所に置くという作業も必要です。 他のマニュアルの関連ページ Docker 設定変更 Docker よくある質問と回答 Linux JM pthreads(7) Docker バイナリから Docker CE のインストール Vim usr_90 Docker Docker Machine のインストール ...
-
https://man.mtool.work/php/8.3/pthreads.installation.html
- 要件 | PHP 8.3 9007
- 要件 pthreads を使うには、ビルド時に ZTS (Zend Thread Safety) を有効 ( --enable-zts を指定。 PHP 8.0.0 より前のバージョン、かつ Windows 以外のバージョンの場合は、 --enable-maintainer-zts を指定) にする必要があります。 警告 ZTS はビルド時の設
... 定オプションです。ビルドした後で変更することはできません。 pthreads は、Posix スレッドのヘッダファイル (pthread.h) と ZTS 版の PHP があればどこでもビルドできます。 Windows でもビルド可能で、 ... その際には redhat の pthread-w32 プロジェクトを利用します。 他のマニュアルの関連ページ Linux JM pthreads(7) Linux JM pthread_self(3) Docker 設定変更 Linux JM pthread_equal(3) Linux JM rpmbuild(8) Python configure ...
-
https://man.mtool.work/php/8.3/pthreads.requirements.html
- The Pool class | PHP 8.3 8857
- 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
... in the way required by pthreads. クラス概要 class Pool { /* プロパティ */ protected $ size ; protected $ class ; protected $ workers ; protected $ ctor ; ... ts a task to a specific worker for execution 他のマニュアルの関連ページ Linux JM shutdown(2) Linux JM shutdown(8) Linux JM pthreads(7) Python concurrent.futures ...
-
https://man.mtool.work/php/8.3/class.pool.html
- The Threaded class | PHP 8.3 8857
- The Threaded class (PECL pthreads >= 2.0.0) はじめに Threaded objects form the basis of pthreads ability to execute user code in parallel; they expose synchronization methods and various useful interfaces. Threaded objects, most importantly
... Threaded::synchronized — Synchronization Threaded::wait — Synchronization 他のマニュアルの関連ページ Python chunk Linux JM pthreads(7) Linux JM wait(2) Linux JM merge(1) ...
-
https://man.mtool.work/php/8.3/class.threaded.html
- The Collectable interface | PHP 8.3 8692
- The Collectable interface (PECL pthreads >= 2.0.8) はじめに Represents a garbage-collectable object. インターフェイス概要 interface Collectable { /* メソッド */ public function isGarbage (): true } 目次 Collectable::isGarbage — Determine wh
... ether an object has been marked as garbage 他のマニュアルの関連ページ Linux JM pthreads(7) ...
-
https://man.mtool.work/php/8.3/class.collectable.html
- The Volatile class | PHP 8.3 8452
- The Volatile class (PECL pthreads >= 3.0.0) はじめに The Volatile class is new to pthreads v3. Its introduction is a consequence of the new immutability semantics of Threaded members of Threaded classes. The Volatile class enables for mutab
... )-> data ); 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#3 (0) { } 他のマニュアルの関連ページ Linux JM pthreads(7) ...
-
https://man.mtool.work/php/8.3/class.volatile.html