]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup: added DESTROYLOCK() macro (needed by dig pullup)
authorAndreas Gustafsson <source@isc.org>
Thu, 21 Sep 2000 23:14:21 +0000 (23:14 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 21 Sep 2000 23:14:21 +0000 (23:14 +0000)
lib/isc/include/isc/util.h

index cae02bc4b50178de369f2ec451cf8608d5e270ce..05154e7fdf748c7d07e8b088a2a1b98249432ecb 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: util.h,v 1.13 2000/06/22 21:58:12 tale Exp $ */
+/* $Id: util.h,v 1.13.2.1 2000/09/21 23:14:21 gson Exp $ */
 
 #ifndef ISC_UTIL_H
 #define ISC_UTIL_H 1
@@ -93,6 +93,9 @@
        ISC_UTIL_TRACE(fprintf(stderr, "UNLOCKED %p %s %d\n", \
                               (lp), __FILE__, __LINE__)); \
        } while (0)
+#define ISLOCKED(lp) (1)
+#define DESTROYLOCK(lp) \
+       RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS)
 
 #define BROADCAST(cvp) do { \
        ISC_UTIL_TRACE(fprintf(stderr, "BROADCAST %p %s %d\n", \