Jenner\SimpleFork\Lock\Semaphore::__construct PHP Method

__construct() private method

init a lock
private __construct ( $key, $count = 1 )
$key
$count
    private function __construct($key, $count = 1)
    {
        if (($this->lock_id = sem_get($this->_stringToSemKey($key), $count)) === false) {
            throw new \RuntimeException("Cannot create semaphore for key: {$key}");
        }
    }