Commit 29107191 authored by Mark Andrews's avatar Mark Andrews
Browse files

Add ISLOCKED macro.

parent 10a6b854
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: util.h,v 1.15 2000/08/01 01:30:55 tale Exp $ */
/* $Id: util.h,v 1.16 2000/08/17 09:25:38 marka Exp $ */
#ifndef ISC_UTIL_H
#define ISC_UTIL_H 1
......@@ -93,6 +93,7 @@
ISC_UTIL_TRACE(fprintf(stderr, "UNLOCKED %p %s %d\n", \
(lp), __FILE__, __LINE__)); \
} while (0)
#define ISLOCKED(lp) (isc_mutex_lock((lp)) != ISC_R_SUCCESS)
#define BROADCAST(cvp) do { \
ISC_UTIL_TRACE(fprintf(stderr, "BROADCAST %p %s %d\n", \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment