Mutex overflow logic with rrc API in phch_recv

master
Ismael Gomez 7 years ago
parent 97546d92a5
commit d3e5aa072e

@ -498,6 +498,7 @@ void phch_recv::run_thread()
/* Radio overflow detected. If CAMPING, go through SFN sync again and when
* SFN is found again go back to camping
*/
if (!pthread_mutex_trylock(&rrc_mutex)) {
if (radio_is_overflow) {
// If we are coming back from an overflow
if (radio_overflow_return) {
@ -523,6 +524,8 @@ void phch_recv::run_thread()
// If overflow occurs in any other state, it does not harm
}
}
pthread_mutex_unlock(&rrc_mutex);
}
// Increase TTI counter
tti = (tti+1) % 10240;

Loading…
Cancel
Save