From 6cefb74b2bebc1311f4b7e95cf6384ce877051e2 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Sun, 11 Feb 2001 19:11:52 +0000 Subject: [PATCH] dns_dispatch_removeresponse() failed to document the requirement that it is only called from the task where the response entry being removed delivers its events (Michael agrees that this is indeed a requirement) --- lib/dns/include/dns/dispatch.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dns/include/dns/dispatch.h b/lib/dns/include/dns/dispatch.h index e7b0dabfa7..8be480e39c 100644 --- a/lib/dns/include/dns/dispatch.h +++ b/lib/dns/include/dns/dispatch.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dispatch.h,v 1.42 2001/02/10 02:00:11 bwelling Exp $ */ +/* $Id: dispatch.h,v 1.43 2001/02/11 19:11:52 gson Exp $ */ #ifndef DNS_DISPATCH_H #define DNS_DISPATCH_H 1 @@ -32,6 +32,7 @@ * MP: * * All locking is performed internally to each dispatch. + * Restrictions apply to dns_dispatch_removeresponse(). * * Reliability: * @@ -364,6 +365,9 @@ dns_dispatch_removeresponse(dns_dispentry_t **resp, * Requires: * "resp" != NULL and "*resp" contain a value previously allocated * by dns_dispatch_addresponse(); + * + * May only be called from within the task given as the 'task' + * argument to dns_dispatch_addresponse() when allocating '*resp'. */