From: Andreas Gustafsson Date: Thu, 21 Sep 2000 23:14:21 +0000 (+0000) Subject: pullup: added DESTROYLOCK() macro (needed by dig pullup) X-Git-Tag: v9.0.0^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb67541bf104744bb0ac1a958df0da4417c7abf;p=thirdparty%2Fbind9.git pullup: added DESTROYLOCK() macro (needed by dig pullup) --- diff --git a/lib/isc/include/isc/util.h b/lib/isc/include/isc/util.h index cae02bc4b50..05154e7fdf7 100644 --- a/lib/isc/include/isc/util.h +++ b/lib/isc/include/isc/util.h @@ -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", \