Метод | Описание | |
---|---|---|
provideMutexFactories ( ) : callable[][] | Provides Mutex factories. | |
provideTestHighContention ( ) : array | Returns test cases for testHighContention(). | |
testHighContention ( callable $code, callable $mutexFactory ) | Tests high contention empirically. | |
testSerialisation ( callable $mutexFactory ) | Tests that two processes run sequentially. |
Метод | Описание | |
---|---|---|
fork ( integer $concurrency, callable $code ) | Forks, runs code in the children and wait until all finished. | |
getPDO ( string $dsn, string $user ) : PDO | Gets a PDO instance. |
public provideMutexFactories ( ) : callable[][] | ||
Результат | callable[][] | The mutex factories. |
public provideTestHighContention ( ) : array | ||
Результат | array | The test cases. |
public testHighContention ( callable $code, callable $mutexFactory ) | ||
$code | callable | The counter code. |
$mutexFactory | callable | The mutex factory. |
public testSerialisation ( callable $mutexFactory ) | ||
$mutexFactory | callable | The Mutex factory. |