DetectionLock
class DetectionLock
Tracks running laser point detections of a volume to prevent concurrent submissions.
The state of a volume is stored in a single cache entry so a volume submission doesn't have to check the entries of all images of the volume.
Methods
Try to mark a volume detection as running.
Mark a volume detection as finished.
Try to mark a single image detection as running.
Mark a single image detection as finished.
Get the cache key of the state of a volume.
Atomically read, modify and write the state of a volume.
Details
at line 23
static bool
acquireVolume(int $volumeId)
Try to mark a volume detection as running.
at line 45
static void
releaseVolume(int $volumeId)
Mark a volume detection as finished.
at line 62
static bool
acquireImage(int $volumeId, int $imageId)
Try to mark a single image detection as running.
at line 85
static void
releaseImage(int $volumeId, int $imageId)
Mark a single image detection as finished.
at line 101
static string
key(int $volumeId)
Get the cache key of the state of a volume.
at line 117
static protected bool
mutate(int $volumeId, callable $callback)
Atomically read, modify and write the state of a volume.