Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
test_lock Class Reference

Static Public Member Functions

static acquire (string $framework, string $lockfilesuffix='')
 Prevent parallel test execution - this can not work in Moodle because we modify database and dataroot. More...
 
static release (string $framework, string $lockfilesuffix='')
 Note: do not call manually!
 

Static Protected Member Functions

static get_lock_handle_name (string $framework, string $lockfilesuffix)
 Get the name of the lock handle stored in the class. More...
 

Static Protected Attributes

static array $lockhandles = array()
 Array of resource used for prevention of parallel test execution.
 

Member Function Documentation

◆ acquire()

static test_lock::acquire ( string  $framework,
string  $lockfilesuffix = '' 
)
static

Prevent parallel test execution - this can not work in Moodle because we modify database and dataroot.

Note: do not call manually!

◆ get_lock_handle_name()

static test_lock::get_lock_handle_name ( string  $framework,
string  $lockfilesuffix 
)
staticprotected

Get the name of the lock handle stored in the class.

Parameters
string$framework
string$lockfilesuffix
Return values
string

The documentation for this class was generated from the following file: