Module rw_spinlock

Source
Expand description

Naive implementation of spin based locking mechanisms

This module provides implementations for locking mechanisms required.

§Acknowledgement

This implementation is largely inspired by the book “Rust Atomics and Locks” by Mara Bos.

Structs§

ReadLockGuard
Read guard for the RwSpinLock
RwSpinLock
A spinlock based, read-write lock which favours writers over readers
WriteLockGuard
Write guard for the RwSpinLock