mirror of https://github.com/PentHertz/srsLTE.git
fix bug when stopping ringbuffer
This commit is contained in:
parent
e328681343
commit
0abc7d4dbd
|
@ -111,6 +111,7 @@ int srslte_ringbuffer_read(srslte_ringbuffer_t *q, void *p, int nof_bytes)
|
|||
|
||||
void srslte_ringbuffer_stop(srslte_ringbuffer_t *q) {
|
||||
pthread_mutex_lock(&q->mutex);
|
||||
q->active = false;
|
||||
pthread_cond_broadcast(&q->cvar);
|
||||
pthread_mutex_unlock(&q->mutex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue