@@ -173,26 +173,26 @@ impl ReentrantMutex {
173
173
174
174
pub unsafe fn lock ( & self ) {
175
175
// `init` must have been called, so this is now initialized and
176
- // we can call `get_ref `.
177
- c:: EnterCriticalSection ( ( & mut * self . inner . get ( ) ) . get_ref ( ) ) ;
176
+ // we can call `get_mut `.
177
+ c:: EnterCriticalSection ( ( & mut * self . inner . get ( ) ) . get_mut ( ) ) ;
178
178
}
179
179
180
180
#[ inline]
181
181
pub unsafe fn try_lock ( & self ) -> bool {
182
182
// `init` must have been called, so this is now initialized and
183
- // we can call `get_ref `.
184
- c:: TryEnterCriticalSection ( ( & mut * self . inner . get ( ) ) . get_ref ( ) ) != 0
183
+ // we can call `get_mut `.
184
+ c:: TryEnterCriticalSection ( ( & mut * self . inner . get ( ) ) . get_mut ( ) ) != 0
185
185
}
186
186
187
187
pub unsafe fn unlock ( & self ) {
188
188
// `init` must have been called, so this is now initialized and
189
- // we can call `get_ref `.
190
- c:: LeaveCriticalSection ( ( & mut * self . inner . get ( ) ) . get_ref ( ) ) ;
189
+ // we can call `get_mut `.
190
+ c:: LeaveCriticalSection ( ( & mut * self . inner . get ( ) ) . get_mut ( ) ) ;
191
191
}
192
192
193
193
pub unsafe fn destroy ( & self ) {
194
194
// `init` must have been called, so this is now initialized and
195
- // we can call `get_ref `.
196
- c:: DeleteCriticalSection ( ( & mut * self . inner . get ( ) ) . get_ref ( ) ) ;
195
+ // we can call `get_mut `.
196
+ c:: DeleteCriticalSection ( ( & mut * self . inner . get ( ) ) . get_mut ( ) ) ;
197
197
}
198
198
}
0 commit comments