Skip to content

Minor spin lock revision.

Choose a tag to compare

@davetcc davetcc released this 12 May 20:11
e45884e

This is to remove the yieldForMicros from spinwait. This was a recipe for deadlocking basically and no yielding should be done while a lock is held. This lock is good in two cases basically:

To briefly lock the bus when there is the risk of an external actor, to ensure exclusivity of a variable or similar.
To lock the bus asynchronously using the tryLock functions.