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:
parent
37b71b7002
commit
86cad62c5c
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_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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue