update condvar-related testcases.

This commit is contained in:
Yifan Wu 2023-02-01 20:46:07 +08:00
parent ffe22a57fb
commit 9d9d3f496b
7 changed files with 129 additions and 65 deletions

View file

@ -28,7 +28,7 @@ impl Barrier {
}
pub fn block(&self) {
mutex_lock(self.mutex_id);
let mut count = self.count.get();
let count = self.count.get();
// SAFETY: Here, the accesses of the count is in the
// critical section protected by the mutex.
unsafe { *count = *count + 1; }