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

View file

@ -1,8 +1,6 @@
#include "clock.h"
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <assert.h>
#include <poll.h>
@ -52,7 +50,7 @@ run(struct module_run_context *ctx)
{
const struct bar *bar = ctx->module->bar;
write(ctx->ready_fd, &(uint64_t){1}, sizeof(uint64_t));
module_signal_ready(ctx);
while (true) {
time_t now = time(NULL);