| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 18 | class Concurrency {
|
||
| 19 | private const SEMAPHORE_KEY_BASE = 0xa5e63947; // arbitrarily selected 32-bit base value |
||
| 20 | |||
| 21 | public function __construct(private Cache $cache, private Logger $logger) {
|
||
| 22 | } |
||
| 23 | |||
| 24 | public function mutexReserve(string $userId, string $key) : false|\SysvSemaphore {
|
||
| 40 | } |
||
| 41 | |||
| 42 | public function mutexRelease(false|\SysvSemaphore $mutex) : void {
|
||
| 47 | } |