module: add new function module_signal_ready()

This commit is contained in:
Daniel Eklöf 2018-12-19 20:23:53 +01:00
parent a3eb7ebc08
commit 3413232ed6
9 changed files with 19 additions and 14 deletions

5
bar.c
View file

@ -417,7 +417,10 @@ run(struct bar_run_context *run_ctx)
}
LOG_DBG("waiting for modules to become ready");
for (size_t i = 0; i < bar->left.count + bar->center.count + bar->right.count; i++) {
for (size_t i = 0; i < (bar->left.count +
bar->center.count +
bar->right.count); i++) {
uint64_t b;
read(ready_fd, &b, sizeof(b));
}