« SyncReaderWriter::writeunlock
SyncSharedMemory::__construct »

The SyncSharedMemory class

(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.

クラス概要

class SyncSharedMemory {
/* メソッド */
public function __construct(string $name, int $size)
public function first(): bool
public function read(int $start = 0, int $length = ?)
public function size(): int
public function write(string $string = ?, int $start = 0)
}

目次

関連キーワード:
SyncSharedMemory   memory   shared   named   size   construct   first   objects   read   start   write   Copy   SyncReaderWriter   writeunlock   Sync   sync   cross   platform   native   implementation   Shared   lets   separate   processes   communicate
関連する関数・ページ:
syncsharedmemory.size   syncsharedmemory.construct   syncsharedmemory.write   syncsharedmemory.read   syncsharedmemory.first   book.sync