|
Elgg
Version 2.3
|
WARNING: API IN FLUX. More...
Public Member Functions | |
| __construct (\Elgg\Database $db, \Elgg\Logger $logger) | |
| Constructor. More... | |
| lock ($namespace) | |
| Creates a table {prefix}{$namespace}_lock that is used as a mutex. More... | |
| unlock ($namespace) | |
| Unlocks mutex. More... | |
| isLocked ($namespace) | |
| Checks if mutex is locked. More... | |
WARNING: API IN FLUX.
DO NOT USE DIRECTLY.
Provides database mutex that can be used to prevent race conditions between two processes that affect the same data.
@access private
| Elgg\Database\Mutex::__construct | ( | \Elgg\Database | $db, |
| \Elgg\Logger | $logger | ||
| ) |
| Elgg\Database\Mutex::isLocked | ( | $namespace | ) |
| Elgg\Database\Mutex::lock | ( | $namespace | ) |
| Elgg\Database\Mutex::unlock | ( | $namespace | ) |