This upgrade introduces a new is_locked function to the Mutex and RawMutex types. The default implementation for RawMutex works, but is less efficient, so a new implementation is added.
Also, unlock was marked unsafe in RawMutex because it cannot safely be called unless the lock is already held. This implementation already made this assumption.
This upgrade introduces a new
is_locked
function to theMutex
andRawMutex
types. The default implementation forRawMutex
works, but is less efficient, so a new implementation is added.Also,
unlock
was markedunsafe
inRawMutex
because it cannot safely be called unless the lock is already held. This implementation already made this assumption.