Method | Description | |
---|---|---|
__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. |
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 |