Icicle\Concurrent\Threading\Internal\Semaphore::count PHP Méthode

count() public méthode

Gets the number of currently available locks.
public count ( ) : integer
Résultat integer The number of available locks.
    public function count() : int
    {
        return $this->locks;
    }

Usage Example

Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function count() : int
 {
     return $this->semaphore->count();
 }