A BaseReadWriteLocker that uses the same locker for the main lock and the count lock, and uses a KeyValueStorage for keeping track of the counter.

Since it is completely dependent on other implementations, this locker is threadsafe if its inputs are as well.

Hierarchy (view full)

Constructors

Properties

countLocker: ResourceLocker
countSuffix: string
readSuffix: string
storage: KeyValueStorage<string, number>

Methods