ike_sa: Defer task manager destruction after child destruction

This patch exports the task manager's flush to allow flushing of all
queues with one function call from ike_sa->destroy. It allows the
access of intact children during task destructoin (see git-commit
e44ebdcf) and allows the access of the task manager in
child_state_change hook.

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2014-01-16 14:16:13 +01:00
committed by Martin Willi
parent 800b361e19
commit b190899473
4 changed files with 16 additions and 9 deletions
+5
View File
@@ -260,6 +260,11 @@ struct task_manager_t {
enumerator_t* (*create_task_enumerator)(task_manager_t *this,
task_queue_t queue);
/**
* Flush all tasks, regardless of the queue.
*/
void (*flush)(task_manager_t *this);
/**
* Flush a queue, cancelling all tasks.
*