@@ -42,30 +42,30 @@ pub type RankData = Option<HeldLock>;
4242
4343/// A `Mutex` instrumented for lock acquisition order observation.
4444///
45- /// This is just a wrapper around a [`parking_lot ::Mutex`], along with
45+ /// This is just a wrapper around a [`wgpu_types::sync ::Mutex`], along with
4646/// its rank in the `wgpu_core` lock ordering.
4747///
4848/// For details, see [the module documentation][self].
4949pub struct Mutex < T > {
50- inner : parking_lot :: Mutex < T > ,
50+ inner : wgpu_types :: sync :: Mutex < T > ,
5151 rank : LockRank ,
5252}
5353
5454/// A guard produced by locking [`Mutex`].
5555///
56- /// This is just a wrapper around a [`parking_lot ::MutexGuard`], along
56+ /// This is just a wrapper around a [`wgpu_types::sync ::MutexGuard`], along
5757/// with the state needed to track lock acquisition.
5858///
5959/// For details, see [the module documentation][self].
6060pub struct MutexGuard < ' a , T > {
61- inner : parking_lot :: MutexGuard < ' a , T > ,
61+ inner : wgpu_types :: sync :: MutexGuard < ' a , T > ,
6262 _state : LockStateGuard ,
6363}
6464
6565impl < T > Mutex < T > {
6666 pub fn new ( rank : LockRank , value : T ) -> Mutex < T > {
6767 Mutex {
68- inner : parking_lot :: Mutex :: new ( value) ,
68+ inner : wgpu_types :: sync :: Mutex :: new ( value) ,
6969 rank,
7070 }
7171 }
@@ -110,41 +110,41 @@ impl<T: core::fmt::Debug> core::fmt::Debug for Mutex<T> {
110110
111111/// An `RwLock` instrumented for lock acquisition order observation.
112112///
113- /// This is just a wrapper around a [`parking_lot ::RwLock`], along with
113+ /// This is just a wrapper around a [`wgpu_types::sync ::RwLock`], along with
114114/// its rank in the `wgpu_core` lock ordering.
115115///
116116/// For details, see [the module documentation][self].
117117pub struct RwLock < T > {
118- inner : parking_lot :: RwLock < T > ,
118+ inner : wgpu_types :: sync :: RwLock < T > ,
119119 rank : LockRank ,
120120}
121121
122122/// A read guard produced by locking [`RwLock`] for reading.
123123///
124- /// This is just a wrapper around a [`parking_lot ::RwLockReadGuard`], along with
124+ /// This is just a wrapper around a [`wgpu_types::sync ::RwLockReadGuard`], along with
125125/// the state needed to track lock acquisition.
126126///
127127/// For details, see [the module documentation][self].
128128pub struct RwLockReadGuard < ' a , T > {
129- inner : parking_lot :: RwLockReadGuard < ' a , T > ,
129+ inner : wgpu_types :: sync :: RwLockReadGuard < ' a , T > ,
130130 _state : LockStateGuard ,
131131}
132132
133133/// A write guard produced by locking [`RwLock`] for writing.
134134///
135- /// This is just a wrapper around a [`parking_lot ::RwLockWriteGuard`], along
135+ /// This is just a wrapper around a [`wgpu_types::sync ::RwLockWriteGuard`], along
136136/// with the state needed to track lock acquisition.
137137///
138138/// For details, see [the module documentation][self].
139139pub struct RwLockWriteGuard < ' a , T > {
140- inner : parking_lot :: RwLockWriteGuard < ' a , T > ,
140+ inner : wgpu_types :: sync :: RwLockWriteGuard < ' a , T > ,
141141 _state : LockStateGuard ,
142142}
143143
144144impl < T > RwLock < T > {
145145 pub fn new ( rank : LockRank , value : T ) -> RwLock < T > {
146146 RwLock {
147- inner : parking_lot :: RwLock :: new ( value) ,
147+ inner : wgpu_types :: sync :: RwLock :: new ( value) ,
148148 rank,
149149 }
150150 }
0 commit comments