Fix commentary for bsem_wait

This commit is contained in:
tommy2234 2022-06-08 17:29:49 +08:00 committed by GitHub
parent b259a6e29a
commit 6e4f28cd26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ static void bsem_post_all(bsem *bsem_p) {
}
/* Wait on semaphore until semaphore has value 0 */
/* Wait on semaphore until semaphore has value 1 */
static void bsem_wait(bsem* bsem_p) {
pthread_mutex_lock(&bsem_p->mutex);
while (bsem_p->v != 1) {