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.

ÀàÕªÒª

SyncSharedMemory {
/* ·½·¨ */
public __construct ( string $name , integer $size )
public bool first ( void )
public read ([ integer $start = 0 [, integer $length ]] )
public bool size ( void )
public write ([ string $string [, integer $start = 0 ]] )
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.