update condvar-related testcases.
This commit is contained in:
parent
b3d434d539
commit
bc80eda2a4
7 changed files with 129 additions and 65 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue