We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc82718 commit aeb01c3Copy full SHA for aeb01c3
library/std/src/sys/unix/locks/futex.rs
@@ -215,6 +215,7 @@ impl ReentrantMutex {
215
true
216
} else if self.mutex.try_lock() {
217
self.owner.store(this_thread, Relaxed);
218
+ debug_assert_eq!(*self.lock_count.get(), 0);
219
*self.lock_count.get() = 1;
220
221
} else {
@@ -229,6 +230,7 @@ impl ReentrantMutex {
229
230
231
self.mutex.lock();
232
233
234
235
}
236
0 commit comments