예제 #1
0
 public function canAcquireMoreLocks()
 {
     return $this->lock->getNumberOfAcquiredLocks() < $this->numQueuesAvailable;
 }
예제 #2
0
 private function assertNumberOfLocksEquals($numExpectedLocks)
 {
     $this->assertSame($numExpectedLocks, $this->lock->getNumberOfAcquiredLocks());
 }