[−][src]Type Definition parking_lot::
type ReentrantMutex<T> = ReentrantMutex<RawMutex, RawThreadId, T>;
A mutex which can be recursively locked by a single thread.
This type is identical to
Mutex except for the following points:
- Locking multiple times from the same thread will work correctly instead of deadlocking.
ReentrantMutexGuarddoes not give mutable references to the locked data. Use a
RefCellif you need this.
Mutex for more details about the underlying mutex