As far as I understand it RawMutex uses its current address as a key into parking_lot_core methods.
Therefore RawMutex value itself cannot be moved while lock is acquired.
This is not a problem for a Mutex because it is borrowed while lock is held, preventing moving. But I don't see this in documentation for RawMutex that might be used directly.
As far as I understand it
RawMutex
uses its current address as a key intoparking_lot_core
methods. ThereforeRawMutex
value itself cannot be moved while lock is acquired.This is not a problem for a
Mutex
because it is borrowed while lock is held, preventing moving. But I don't see this in documentation forRawMutex
that might be used directly.