1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

added new states for shutdown

This commit is contained in:
Steffen Vogel 2019-02-11 16:41:51 +01:00
parent 37b71b7002
commit 86cad62c5c
2 changed files with 7 additions and 3 deletions

View file

@ -41,7 +41,11 @@ enum state {
STATE_CLOSED = 5, /* alias for STATE_STARTED used by struct io */
STATE_PENDING_CONNECT = 6,
STATE_CONNECTED = 7,
STATE_PAUSED = 8
STATE_PAUSED = 8,
STATE_STARTING = 9,
STATE_STOPPING = 10,
STATE_PAUSING = 11,
STATE_RESUMING = 12
};
/** Callback to destroy list elements.

View file

@ -127,9 +127,9 @@ int task_destroy(struct task *t)
{
#if PERIODIC_TASK_IMPL == TIMERFD
return close(t->fd);
#endif
#else
return 0;
#endif
}
uint64_t task_wait(struct task *t)