chiark / gitweb /
Reentrancy: Add warning comment to adns__must_gettimeofday
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 20:18:29 +0000 (21:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Oct 2014 20:09:56 +0000 (21:09 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/internal.h

index 4fd6ee8..0374acc 100644 (file)
@@ -872,6 +872,7 @@ void adns__autosys(adns_state ads, struct timeval now);
 
 void adns__must_gettimeofday(adns_state ads, const struct timeval **now_io,
                             struct timeval *tv_buf);
+/* Call with care - might reentrantly cause queries to be completed! */
 
 int adns__pollfds(adns_state ads, struct pollfd pollfds_buf[MAX_POLLFDS]);
 void adns__fdevents(adns_state ads,