Mutex
class Mutex
Properties
| static protected Channel> | $channels |
Methods
static bool
lock(string $key, float $timeout = -1)
Acquire a mutex lock for the given key.
static bool
unlock(string $key, float $timeout = 5)
Release a mutex lock for the given key.
static void
clear(string $key)
Clear and close the mutex channel for the given key.
static void
flushState()
Flush all static state.
Details
at line 22
static bool
lock(string $key, float $timeout = -1)
Acquire a mutex lock for the given key.
at line 43
static bool
unlock(string $key, float $timeout = 5)
Release a mutex lock for the given key.
at line 60
static void
clear(string $key)
Clear and close the mutex channel for the given key.
at line 72
static void
flushState()
Flush all static state.