mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
added new states for shutdown
This commit is contained in:
parent
2db5ecd82a
commit
e821a7fbba
2 changed files with 7 additions and 3 deletions
|
@ -41,7 +41,11 @@ enum state {
|
||||||
STATE_CLOSED = 5, /* alias for STATE_STARTED used by struct io */
|
STATE_CLOSED = 5, /* alias for STATE_STARTED used by struct io */
|
||||||
STATE_PENDING_CONNECT = 6,
|
STATE_PENDING_CONNECT = 6,
|
||||||
STATE_CONNECTED = 7,
|
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.
|
/** Callback to destroy list elements.
|
||||||
|
|
|
@ -127,9 +127,9 @@ int task_destroy(struct task *t)
|
||||||
{
|
{
|
||||||
#if PERIODIC_TASK_IMPL == TIMERFD
|
#if PERIODIC_TASK_IMPL == TIMERFD
|
||||||
return close(t->fd);
|
return close(t->fd);
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t task_wait(struct task *t)
|
uint64_t task_wait(struct task *t)
|
||||||
|
|
Loading…
Add table
Reference in a new issue