"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/mutex/Mutex.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

Mutex.php  (yii2-2.0.35):Mutex.php  (yii2-2.0.36)
skipping to change at line 100 skipping to change at line 100
unset($this->_locks[$index]); unset($this->_locks[$index]);
} }
return true; return true;
} }
return false; return false;
} }
/** /**
* Checks if a lock is currently acquired
*
* @param string $name of the lock to check
* @return bool Returns true if currently acquired
* @since 2.0.36
*/
public function isAcquired($name)
{
return in_array($name, $this->_locks, true);
}
/**
* This method should be extended by a concrete Mutex implementations. Acqui res lock by name. * This method should be extended by a concrete Mutex implementations. Acqui res lock by name.
* @param string $name of the lock to be acquired. * @param string $name of the lock to be acquired.
* @param int $timeout time (in seconds) to wait for the lock to be released . * @param int $timeout time (in seconds) to wait for the lock to be released .
* @return bool acquiring result. * @return bool acquiring result.
*/ */
abstract protected function acquireLock($name, $timeout = 0); abstract protected function acquireLock($name, $timeout = 0);
/** /**
* This method should be extended by a concrete Mutex implementations. Relea ses lock by given name. * This method should be extended by a concrete Mutex implementations. Relea ses lock by given name.
* @param string $name of the lock to be released. * @param string $name of the lock to be released.
 End of changes. 1 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)