Make [un]register_consumer operate on pointers, rename get_loop_again() to has_work()

This commit is contained in:
Vitaliy Filippov
2020-03-04 21:00:20 +03:00
parent 1e21555343
commit 9cb07d844b
7 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ static void bs_cleanup(struct thread_data *td)
bsd->ringloop->loop();
if (bsd->bs->is_safe_to_stop())
goto safe;
} while (bsd->ringloop->get_loop_again());
} while (bsd->ringloop->has_work());
bsd->ringloop->wait();
}
safe: