ResourceMutex
Wrapper for locking API that uses two locks to not exhaust locking resources and still block properly
Table of Contents
Methods
- __construct() : mixed
- acquireLock() : void
- Acquire a specific lock for the given scope
- releaseLock() : void
- Release a worker specific lock
Methods
__construct()
public
__construct(LockFactory $lockFactory) : mixed
Parameters
- $lockFactory : LockFactory
acquireLock()
Acquire a specific lock for the given scope
public
acquireLock(string $scope, string $key) : void
Parameters
- $scope : string
- $key : string
Tags
releaseLock()
Release a worker specific lock
public
releaseLock(string $scope) : void
Parameters
- $scope : string