PHP 8.5.0 Beta 2 available for testing

The SyncSharedMemory class

(PECL sync >= 1.1.0)

Introduction

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 synopsis

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

Table of Contents

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /