commit | 3f795f76e87549183ee2985754857e23750d7e5f | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Wed Apr 17 22:51:06 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 18 10:10:04 2019 +0200 |
tree | d93f37b22f950b24341bb1a65ace5468320b83b4 | |
parent | 03dd029a5b84bb4de13c8c61af22555d294f64b2 [diff] |
MEDIUM: tasks: Merge task_delete() and task_free() into task_destroy(). task_delete() was never used without calling task_free() just after, and task_free() was only used on error pathes to destroy a just-created task, so merge them into task_destroy(), that will remove the task from the wait queue, and make sure the task is either destroyed immediately if it's not in the run queue, or destroyed when it's supposed to run.