« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for channels (0.002 sec.)
The parallel\Channel class | PHP 8.3 13991
The parallel\Channel class (0.9.0) Unbuffered Channels An unbuffered channel will block on calls to parallel\Channel::send() until there is a receiver, and block on calls to parallel\Channel::recv() until there is a sender. This means an un ... synchronization. An unbuffered channel is the fastest way to share data among tasks, requiring the least copying. Buffered Channels A buffered channel will not block on calls to parallel\Channel::send() until capacity is reached, calls to parallel\Channe ... l::recv() will block until there is data in the buffer. Closures over Channels A powerful feature of parallel channels is that they allow the exchange of closures between tasks (and runtimes). When a c ... ure is executed that was transmitted by a channel, static state will be as it was when the closure was buffered. Anonymous Channels The anonymous channel constructor allows the programmer to avoid assigning names to every channel: parallel will generate ...
https://man.mtool.work/php/8.3/class.parallel-channel.html
Philosophy | PHP 8.3 10966
Philosophy This section contains philosophies important to writing parallel code and some details about the internal implementation of parallel. Do not communicate by sharing memory; instead, share memory by communicating. This philosophy w ... example). When parallel passes a variable from one thread to another by any means - Task arguments, return via Future, and Channels - it is passed by value. In all but the case of unbuffered channels, the variable is also buffered so that it may not chan ... e. This also makes PHP the perfect platform for implementing a parallel concurrency API based on CSP (message passing over channels), because PHP itself is shared nothing - PHP threads operate in their own virtual address space by default, and so may onl ... . The data should be owned by a single task, changes to (or operations on) that data structure should be communicated over channels and performed by the owner of the data, the success, failure, or result (state) of the change (or operation) being communi ...
https://man.mtool.work/php/8.3/philosophy.parallel.html
parallel | PHP 8.3 8525
parallel はじめに parallel is a parallel concurrency extension for PHP ≥ 7.2.0. As of parallel 1.2.0, PHP ≥ 8.0.0 is required. A brief description of the concepts core to parallel follows, more detailed information may be found within this ... native feel ( Traversable ) event loop, and parallel\Events::poll() method. It allows the programmer to work with sets of channels and or futures. The programmer simply adds channels and futures to the event loop, optionally setting the input for writes ...
https://man.mtool.work/php/8.3/book.parallel.html
ogg:// — オーディオストリーム | PHP 8.3 8525
ogg:// ogg:// — オーディオストリーム 説明 ogg:// ラッパー経由で読み込みモードでオープンされた ファイルは、 OGG/Vorbis コーデックでエンコードされた圧縮音声ファイルとして 扱われます。同様に、 ogg:// ラッパー経由で書き込みモード あるいは追記モ ... イルに対して stream_get_meta_data() を適用した場合、以下のような さまざまな情報を返します。 vendor タグ、 comments 、 多くの channels 、サンプリングレート rate 、 および以下のパラメータで指定されるエンコーディングレート。 bitrate_lower 、 bitrate_upper 、 ... 固定ビットレート(16000 から 131072)。 浮動小数点値の場合、使用する可変ビットレート(-1.0 から 1.0)。 128000 Write/Append channels エンコードする音声チャネル数。一般には 1(モノラル)あるいは 2(ステレオ)。 最大 16 まで。 2 Write/Append comments エンコ ...
https://man.mtool.work/php/8.3/wrappers.audio.html
getimagesize — 画像の大きさを取得する | PHP 8.3 8401
getimagesize (PHP 4, PHP 5, PHP 7, PHP 8) getimagesize — 画像の大きさを取得する 説明 function getimagesize ( string $filename , array &$image_info = null ): array | false getimagesize() 関数は、サポートする任意の形式の画像ファイルの大きさを ... : image_info は、 JFIF ファイルのみをサポートします。 戻り値 最大 7 つの要素からなる配列を返します。画像の形式によっては、 channels や bits は含まれないことがあります。 0 番目および 1 番目の要素は、それぞれ画像の幅と高さを表します。 注意 : 形式によっては ... ); if ( $size && $fp ) { header ( "Content-type: { $size [ 'mime' ]} " ); fpassthru ( $fp ); exit; } else { // エラー } ?> channels は RGB 画像の場合に 3、CMYK 画像の場合に 4 です。 bits は個々の色のビット数です。 画像の形式によっては、 channels や bits ...
https://man.mtool.work/php/8.3/function.getimagesize.html
The parallel\Events class | PHP 8.3 8171
The parallel\Events class (0.9.0) The Event Loop The Event loop monitors the state of sets of futures and or channels (targets) in order to perform read ( parallel\Future::value() , parallel\Channel::recv() ) and write ( parallel\Channel::s ...
https://man.mtool.work/php/8.3/class.parallel-events.html
The parallel\Sync class | PHP 8.3 8171
The parallel\Sync class (1.1.0) Low Level Synchronization The parallel\Sync class provides access to low level synchronization primitives, mutex, condition variables, and allows the implementation of semaphores. Synchronization for most app ... lications is much better implemented using channels, however, in some cases authors of low level code may find it useful to be able to access these lower level mechanisms. ク ...
https://man.mtool.work/php/8.3/class.parallel-sync.html
openal_buffer_get — OpenAL バッファのプロパティを取得する | PHP 8.3 8171
openal_buffer_get (PECL openal >= 0.1.0) openal_buffer_get — OpenAL バッファのプロパティを取得する 説明 function openal_buffer_get ( resource $buffer , int $property ): int | false パラメータ buffer Open AL (バッファ) リソース (事前に opena ... l_buffer_create() で作成したもの)。 property 特定のプロパティ。 AL_FREQUENCY 、 AL_BITS 、 AL_CHANNELS そして AL_SIZE のいずれか。 戻り値 要求された property の値を整数で返します。 失敗した場合に false を返します。 参考 opena ...
https://man.mtool.work/php/8.3/function.openal-buffer-get.html
Color Representation | PHP 8.3 8065
Color Representation (UI 0.9.9) はじめに Represents RGBA colours, individual channels are accessible via public properties. クラス概要 class UI\Draw\Color { /* 定数 */ const int Red ; const int Green ; const int Blue ; const int Alpha ; /* ...
https://man.mtool.work/php/8.3/class.ui-draw-color.html
parallel\Runtime::run — Execution | PHP 8.3 7711
parallel\Runtime::run (0.8.0) parallel\Runtime::run — Execution 説明 public function parallel\Runtime::run ( Closure $task ): ? Future Shall schedule task for execution in parallel. public function parallel\Runtime::run ( Closure $task , ar ... so may be shared. Closures are a special kind of internal object and support being copied by value, and so may be shared. Channels are central to writing parallel code and support concurrent access and execution by necessity, and so may be shared. 警告 ...
https://man.mtool.work/php/8.3/parallel-runtime.run.html
PREV 1 2 NEXT