fix signaling of mtch_cvar in phch_common

fixes possible race cond when more than one worker
is waiting for this cond and only one is ever woken up
This commit is contained in:
Andre Puschmann 2019-01-21 12:25:27 +01:00
parent 3d458319c9
commit 631472760a
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ void phch_common::set_mch_period_stop(uint32_t stop)
pthread_mutex_lock(&mtch_mutex);
have_mtch_stop = true;
mch_period_stop = stop;
pthread_cond_signal(&mtch_cvar);
pthread_cond_broadcast(&mtch_cvar);
pthread_mutex_unlock(&mtch_mutex);
}