Icicle\Concurrent\Sync\SharedMemoryParcel::__construct PHP Method

__construct() public method

The object given will be assigned a new object ID and will have a reference to it stored in memory local to the thread.
public __construct ( mixed $value, integer $size = 16384, integer $permissions = 384 )
$value mixed The value to store in the container.
$size integer The number of bytes to allocate for the object. If not specified defaults to 16384 bytes.
$permissions integer The access permissions to set for the object. If not specified defaults to 0600.
    public function __construct($value, int $size = 16384, int $permissions = 0600)
    {
        if (!extension_loaded("shmop")) {
            throw new UnsupportedError(__CLASS__ . " requires the shmop extension.");
        }
        $this->init($value, $size, $permissions);
    }