2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

the event action is now responsible for freeing the event memory

This commit is contained in:
Bob Halley
1998-10-28 01:45:43 +00:00
parent b592e197fe
commit b32248301c
3 changed files with 18 additions and 7 deletions

View File

@@ -384,7 +384,7 @@ isc_task_shutdown(isc_task_t task) {
REQUIRE(VALID_TASK(task));
/*
* This routine is very similar to isc_task_send_event() above.
* This routine is very similar to isc_task_send() above.
*/
LOCK(&task->lock);
@@ -500,7 +500,7 @@ run(void *uap) {
while (!FINISHED(manager)) {
/*
* For reasons similar to those given in the comment in
* isc_task_send_event() above, it is safe for us to dequeue
* isc_task_send() above, it is safe for us to dequeue
* the task while only holding the manager lock, and then
* change the task to running state while only holding the
* task lock.
@@ -569,8 +569,6 @@ run(void *uap) {
wants_shutdown = ISC_FALSE;
dispatch_count++;
isc_event_free(&event);
LOCK(&task->lock);
if (wants_shutdown || is_shutdown) {
/*