Php/docs/class.syncsharedmemory

提供:Dev Guides
< Php
2020年12月14日 (月) 09:45時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

(PECL sync >= 1.1.0)

はじめに

A cross-platform, native, consistent implementation of named shared memory objects.

Shared memory lets two separate processes communicate without the need for complex pipes or sockets. There are several integer-based shared memory implementations for PHP. Named shared memory is an alternative.

Synchronization objects (e.g. SyncMutex) are still required to protect most uses of shared memory.


クラス概要


SyncSharedMemory {

/* メソッド */

public __construct ( string $name , int $size )

public first ( ) : bool

public read ([ int $start = 0 [, int $length ]] )

public size ( ) : bool

public write ([ string $string [, int $start = 0 ]] )

}

目次