Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
fa07d313
Commit
fa07d313
authored
Aug 30, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation fixed for mutex extension
parent
147558ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
FileMutex.php
extensions/mutex/yii/mutex/FileMutex.php
+2
-2
Mutex.php
extensions/mutex/yii/mutex/Mutex.php
+1
-0
MysqlMutex.php
extensions/mutex/yii/mutex/MysqlMutex.php
+2
-2
No files found.
extensions/mutex/yii/mutex/FileMutex.php
View file @
fa07d313
...
@@ -18,7 +18,7 @@ class FileMutex extends Mutex
...
@@ -18,7 +18,7 @@ class FileMutex extends Mutex
{
{
/**
/**
* @var string the directory to store mutex files. You may use path alias here.
* @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'
;
public
$mutexPath
=
'@runtime/mutex'
;
/**
/**
...
@@ -69,7 +69,7 @@ class FileMutex extends 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.
* @param string $name of the lock to be released.
* @return boolean release result.
* @return boolean release result.
*/
*/
...
...
extensions/mutex/yii/mutex/Mutex.php
View file @
fa07d313
...
@@ -45,6 +45,7 @@ abstract class Mutex extends Component
...
@@ -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 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
* @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.
* false immediately in case lock was already acquired.
...
...
extensions/mutex/yii/mutex/MysqlMutex.php
View file @
fa07d313
...
@@ -29,7 +29,7 @@ class MysqlMutex extends Mutex
...
@@ -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 string $name of the lock to be acquired.
* @param integer $timeout to wait for lock to become released.
* @param integer $timeout to wait for lock to become released.
* @return boolean acquiring result.
* @return boolean acquiring result.
...
@@ -43,7 +43,7 @@ class MysqlMutex extends Mutex
...
@@ -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.
* @param string $name of the lock to be released.
* @return boolean release result.
* @return boolean release result.
* @see http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_release-lock
* @see http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_release-lock
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment