Icicle\Concurrent\Sync\PosixSemaphore::setPermissions PHP Method

setPermissions() public method

The current user must have access to the semaphore in order to change the permissions.
public setPermissions ( integer $mode )
$mode integer A permissions mode to set.
    public function setPermissions(int $mode)
    {
        if (!msg_set_queue($this->queue, ['msg_perm.mode' => $mode])) {
            throw new SemaphoreException('Failed to change the semaphore permissions.');
        }
    }