cvs updates from Wed Dec 15 17:45:22 EST 2010
[tridge/bind9.git] / lib / isc / task.c
index f70ea490fcac6b5e9eabe80fd3a754ef63c2a3f2..49dca3625be9131dd46e6a4153e74c6500aec255 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2010  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 1998-2003  Internet Software Consortium.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: task.c,v 1.111 2009/10/05 17:30:49 fdupont Exp $ */
+/* $Id: task.c,v 1.114 2010/12/04 13:25:59 marka Exp $ */
 
 /*! \file
  * \author Principal Author: Bob Halley
@@ -1482,6 +1482,15 @@ isc__task_register() {
 }
 #endif
 
+isc_boolean_t
+isc_task_exiting(isc_task_t *t) {
+       isc__task_t *task = (isc__task_t *)t;
+
+       REQUIRE(VALID_TASK(task));
+       return (TASK_SHUTTINGDOWN(task));
+}
+
+
 #if defined(HAVE_LIBXML2) && defined(BIND9)
 void
 isc_taskmgr_renderxml(isc_taskmgr_t *mgr0, xmlTextWriterPtr writer) {