public function acquire($server, $loop) { $lock = $this->sem->acquire(false); if ($lock) { return true; } return false; }
public function testAcquireException() { $this->setExpectedException("RuntimeException"); $this->lock->acquire(); $this->lock->acquire(); }