semaphore = new InternalThreadedSemaphore($maxLocks); } /** * 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(); } }