PHP 클래스 Spork\SharedMemory

파일 보기 프로젝트 열기: kriswallsmith/spork

공개 메소드들

메소드 설명
__construct ( integer $pid = null, integer $signal = null ) Constructor.
receive ( ) : array Reads all messages from shared memory.
send ( mixed $message, integer $signal = null, integer $pause = 500 ) Writes a message to the shared memory.
signal ( $signal ) Sends a signal to the other process.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( integer $pid = null, integer $signal = null )
$pid integer The child process id or null if this is the child
$signal integer The signal to send after writing to shared memory

receive() 공개 메소드

Reads all messages from shared memory.
public receive ( ) : array
리턴 array An array of messages

send() 공개 메소드

Writes a message to the shared memory.
public send ( mixed $message, integer $signal = null, integer $pause = 500 )
$message mixed The message to send
$signal integer The signal to send afterward
$pause integer The number of microseconds to pause after signalling

signal() 공개 메소드

Sends a signal to the other process.
public signal ( $signal )