Commit 24fceb43 authored by Robert Schmidt's avatar Robert Schmidt

Unlock mutex after condition signal in USRP driver

parent 968d28d5
...@@ -640,8 +640,8 @@ static void trx_usrp_write_reset(openair0_thread_t *wt) { ...@@ -640,8 +640,8 @@ static void trx_usrp_write_reset(openair0_thread_t *wt) {
pthread_mutex_lock(&wt->mutex_write); pthread_mutex_lock(&wt->mutex_write);
wt->count_write = 1; wt->count_write = 1;
wt->write_thread_exit = true; wt->write_thread_exit = true;
pthread_mutex_unlock(&wt->mutex_write);
pthread_cond_signal(&wt->cond_write); pthread_cond_signal(&wt->cond_write);
pthread_mutex_unlock(&wt->mutex_write);
void *retval = NULL; void *retval = NULL;
pthread_join(wt->pthread_write, &retval); pthread_join(wt->pthread_write, &retval);
LOG_I(HW, "stopped USRP write thread\n"); LOG_I(HW, "stopped USRP write thread\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment