diff --git a/extensions/mutex/yii/mutex/FileMutex.php b/extensions/mutex/yii/mutex/FileMutex.php index 4a949d0..ab418ba 100644 --- a/extensions/mutex/yii/mutex/FileMutex.php +++ b/extensions/mutex/yii/mutex/FileMutex.php @@ -18,7 +18,7 @@ class FileMutex extends Mutex { /** * @var string the directory to store mutex files. You may use path alias here. - * If not set, it will use the "mutex" subdirectory under the application runtime path. + * Defaults to the "mutex" subdirectory under the application runtime path. */ public $mutexPath = '@runtime/mutex'; /** @@ -69,7 +69,7 @@ class FileMutex extends Mutex } /** - * This method should be extended by concrete mutex implementations. Releases lock by given name. + * Releases lock by given name. * @param string $name of the lock to be released. * @return boolean release result. */ diff --git a/extensions/mutex/yii/mutex/Mutex.php b/extensions/mutex/yii/mutex/Mutex.php index 297abaf..8f0a560 100644 --- a/extensions/mutex/yii/mutex/Mutex.php +++ b/extensions/mutex/yii/mutex/Mutex.php @@ -45,6 +45,7 @@ abstract class Mutex extends Component } /** + * Acquires lock by given name. * @param string $name of the lock to be acquired. Must be unique. * @param integer $timeout to wait for lock to be released. Defaults to zero meaning that method will return * false immediately in case lock was already acquired. diff --git a/extensions/mutex/yii/mutex/MysqlMutex.php b/extensions/mutex/yii/mutex/MysqlMutex.php index b04427a..f1c7cd1 100644 --- a/extensions/mutex/yii/mutex/MysqlMutex.php +++ b/extensions/mutex/yii/mutex/MysqlMutex.php @@ -29,7 +29,7 @@ class MysqlMutex extends Mutex } /** - * This method should be extended by concrete mutex implementations. Acquires lock by given name. + * Acquires lock by given name. * @param string $name of the lock to be acquired. * @param integer $timeout to wait for lock to become released. * @return boolean acquiring result. @@ -43,7 +43,7 @@ class MysqlMutex extends Mutex } /** - * This method should be extended by concrete mutex implementations. Releases lock by given name. + * Releases lock by given name. * @param string $name of the lock to be released. * @return boolean release result. * @see http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_release-lock