在进行snprintf之前,进行缓冲区的判满,提高处理效率。去掉无意义的goto语句

This commit is contained in:
guo_peixu
2022-06-22 18:42:59 +08:00
parent b94706ac06
commit 7a88ab75ec
2 changed files with 4 additions and 2 deletions

View File

@@ -524,7 +524,7 @@ int main(int argc, char **argv)
if(g_care_pid == CONSUMER_CARE_PID_SPEC){
if(!producer_pid_is_cared(tmp_ovw->producer_pid)){
MESA_shm_ring_queue_set_empty(ring_queue_head[i]);
goto next;
break ;
}
}
if(g_output_mode == CONSUMER_OUTPUT_MODE_FILE){
@@ -534,7 +534,6 @@ int main(int argc, char **argv)
}
}
}
next:
usleep(5000);
}
return 0;