minor fix

This commit is contained in:
AlexeyAB84 2022-07-07 23:33:45 +03:00
parent a02b5b83a6
commit ecace9a36d
1 changed files with 2 additions and 2 deletions

View File

@ -344,12 +344,12 @@ void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int
}
while (custom_atomic_load_int(&run_detect_in_thread)) {
if(avg_fps > 180) this_thread_yield();
if(avg_fps > 50) this_thread_yield();
else this_thread_sleep_for(thread_wait_ms); // custom_join(detect_thread, 0);
}
if (!benchmark) {
while (custom_atomic_load_int(&run_fetch_in_thread)) {
if (avg_fps > 180) this_thread_yield();
if (avg_fps > 50) this_thread_yield();
else this_thread_sleep_for(thread_wait_ms); // custom_join(fetch_thread, 0);
}
free_image(det_s);