Lock

This package provides a set of interfaces and classes used to create several types of locks.

Interfaces

ILock

Interface for locks to synchronize work or parallel processes and to prevent collisions. The lock allows to manage multiple locks identified by unique keys.


Classes

DefaultLockFactory

Creates ILock components by their descriptors.

Lock

Abstract lock that implements the default lock acquisition routine.

MemoryLock

Lock that is used to synchronize execution within one process using shared memory. This implementation is not suitable for synchronization of distributed processes.

NullLock

Dummy lock implementation that doesn’t do anything.

It can be used in testing or in situations when a lock is required but shall be disabled.