Skip to content

Commit 1e80063

Browse files
committed
remove unnecesary braces
1 parent 7bbd476 commit 1e80063

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libc/src/__support/threads/linux/barrier.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@ int Barrier::wait() {
4444
m.lock();
4545

4646
// if the barrier is emptying out threads, wait until it finishes
47-
while (!blocking) {
47+
while (!blocking)
4848
entering.wait(&m);
49-
}
5049
waiting++;
5150

5251
if (waiting < expected) {
5352
// block threads until waiting = expected
54-
while (blocking) {
53+
while (blocking)
5554
exiting.wait(&m);
56-
}
5755
} else {
5856
// this is the last thread to call wait(), so lets wake everyone up
5957
blocking = false;

0 commit comments

Comments
 (0)