bar: wait for all modules to have started up before continuing

After starting all the module threads, wait for all modules to have
signalled "ready" before continuing.

This will allow modules to do initial setup, and knowing that
content() will *not* be called until they've signalled "ready".
This commit is contained in:
Daniel Eklöf 2018-12-19 19:41:25 +01:00
parent 7f0f096ba4
commit a3eb7ebc08
8 changed files with 35 additions and 1 deletions

View file

@ -11,6 +11,7 @@ struct module;
struct module_run_context {
struct module *module;
int ready_fd;
int abort_fd;
};