Reader semaphore transaction for managing shared (read) access slots. Multiple readers can hold slots simultaneously up to the configured limit.
Writer lock transaction for managing exclusive (write) access. Only one writer can hold the lock at a time, blocking all readers.
Combined transaction context providing both reader semaphore and writer lock operations. Groups reader and writer operations under a single transaction for atomicity.
In a shared (reader-writer) lock:
reader: Manages concurrent reader slots (shared access)writer: Manages exclusive writer lock (exclusive access) Both must be checked atomically to prevent race conditions.IMPORT_PATH:
"@daiso-tech/core/shared-lock/contracts"