semaphore = new Internal\Semaphore($locks); } /** * Gets the number of currently available locks. * * @return int The number of available locks. */ public function count() { return $this->semaphore->count(); } /** * {@inheritdoc} */ public function acquire() { return $this->semaphore->acquire(); } }