mirror of https://github.com/PentHertz/srsLTE.git
Code style: Use { } even in 1-line if
This commit is contained in:
parent
95690a56ec
commit
67e90d5a9b
|
@ -143,7 +143,7 @@ public:
|
||||||
used_timers[i] = false;
|
used_timers[i] = false;
|
||||||
nof_used_timers--;
|
nof_used_timers--;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Error releasing timer: nof_used_timers=%d, nof_timers=%d\n", nof_used_timers, nof_timers);
|
fprintf(stderr, "Error releasing timer id=%d: nof_used_timers=%d, nof_timers=%d\n", i, nof_used_timers, nof_timers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uint32_t get_unique_id() {
|
uint32_t get_unique_id() {
|
||||||
|
|
|
@ -207,8 +207,9 @@ void gtpu::stop()
|
||||||
{
|
{
|
||||||
if (run_enable) {
|
if (run_enable) {
|
||||||
run_enable = false;
|
run_enable = false;
|
||||||
if(mch_run_enable)
|
if(mch_run_enable) {
|
||||||
mch_run_enable = false;
|
mch_run_enable = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Wait thread to exit gracefully otherwise might leave a mutex locked
|
// Wait thread to exit gracefully otherwise might leave a mutex locked
|
||||||
int cnt=0;
|
int cnt=0;
|
||||||
|
@ -218,9 +219,10 @@ void gtpu::stop()
|
||||||
}
|
}
|
||||||
if (running) {
|
if (running) {
|
||||||
thread_cancel();
|
thread_cancel();
|
||||||
if(mch_running)
|
if(mch_running) {
|
||||||
pthread_cancel(mch_thread);
|
pthread_cancel(mch_thread);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wait_thread_finish();
|
wait_thread_finish();
|
||||||
pthread_join(mch_thread, NULL);
|
pthread_join(mch_thread, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue