This project is read-only.


Read-Write Spinlocks


Implement spin locks which do minimal locking within this locker. These spin locks are not recursive. They cannot be embedded within each other. They also have write priority (as reading is done much more often--including when being pulsed or timing out after 6 seconds of locking & re-querying).
This is pretty easy, but recently I have been skipping steps, trying to implement policy based locking in one go. Current source, 3393, may get reverted back a few steps to something more stable (3393 also utilizes read-write spinlocks).
Closed Oct 26, 2010 at 11:37 AM by TamusJRoyce
Read/Upgrade/Write Spinlocks implemented.


TamusJRoyce wrote Oct 23, 2010 at 4:04 AM

I hate race conditions : ). Getting close, but spinlocks have an instance where upgrading read to write lock causes infinite loop.

wrote Oct 26, 2010 at 11:37 AM

wrote Feb 12, 2013 at 10:43 PM

wrote May 15, 2013 at 1:11 AM