Skip to content

Commit

Permalink
add comments about not unlocking in test
Browse files Browse the repository at this point in the history
  • Loading branch information
beepster4096 committed Nov 5, 2022
1 parent 1a3ad13 commit 1ac1dd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/pass/concurrency/windows_condvar_shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ fn all_shared() {
assert_ne!(r, 0);

println!("exclusive waiter {i} reacquired lock");

// unlocking is unnecessary because the lock is never used again
}));
}

Expand Down Expand Up @@ -125,6 +127,8 @@ fn shared_sleep_and_exclusive_lock() {
assert_ne!(r, 0);

println!("shared waiter {i} reacquired lock");

// unlocking is unnecessary because the lock is never used again
}));
}

Expand Down

0 comments on commit 1ac1dd7

Please sign in to comment.