Closed alwaysbemodest closed 2 years ago
you cannot put the Sem_post(&m->mutex) before the if-else statement since you will use the protected variable m->room1 later in the if predicate.
Sem_post(&m->mutex)
m->room1
Thanks!
you cannot put the
Sem_post(&m->mutex)
before the if-else statement since you will use the protected variablem->room1
later in the if predicate.