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

__clone() public method

Clones the semaphore, creating a new semaphore with the same size and permissions.
public __clone ( )
    public function __clone()
    {
        $this->init($this->maxLocks, $this->getPermissions());
    }