Icicle\Concurrent\Threading\Semaphore::__construct PHP Method

__construct() public method

Creates a new semaphore with a given number of locks.
public __construct ( integer $locks )
$locks integer The maximum number of locks that can be acquired from the semaphore.
    public function __construct(int $locks)
    {
        $this->init($locks);
    }