update condvar-related testcases.

This commit is contained in:
Yifan Wu 2023-02-01 20:50:53 +08:00
parent b3d434d539
commit bc80eda2a4
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; }