Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 0015958

Browse files
committed
lib/lineup: don't assert the lock owner
Signed-off-by: Reto Achermann <achreto@gmail.com>
1 parent 367a510 commit 0015958

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/lineup/src/mutex.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ struct MutexInner {
109109
impl MutexInner {
110110
fn try_enter(&self) -> bool {
111111
let tid = Environment::tid();
112-
assert!(
113-
self.owner.get() != Some(tid),
114-
"Locking mutex against itself."
115-
);
116-
117112
let counter = self.counter.load(Ordering::Relaxed);
118113
loop {
119114
if counter != 0 {

0 commit comments

Comments
 (0)