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:
committed by
Martin Willi
parent
800b361e19
commit
b190899473
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user