131. [cleanup] <isc/mutex.h> and <isc/util.h> need <isc/result.h>

for ISC_R_* codes used in macros.
This commit is contained in:
David Lawrence
2000-04-28 19:03:50 +00:00
parent c403d3f7d6
commit 9c4f33b671
3 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
131. [cleanup] <isc/mutex.h> and <isc/util.h> need <isc/result.h>
for ISC_R_* codes used in macros.
130. [cleanup] <isc/condition.h> does not need <pthread.h> or
<isc/boolean.h>, and now includes <isc/types.h>
instead of <isc/time.h>.

View File

@@ -62,6 +62,8 @@
#define ISC_UTIL_TRACE(a)
#endif
#include <isc/result.h> /* for ISC_R_SUCCESS */
#define LOCK(lp) do { \
ISC_UTIL_TRACE(fprintf(stderr, "LOCKING %p %s %d\n", (lp), __FILE__, __LINE__)); \
RUNTIME_CHECK(isc_mutex_lock((lp)) == ISC_R_SUCCESS); \

View File

@@ -20,6 +20,8 @@
#include <pthread.h>
#include <isc/result.h> /* for ISC_R_ codes */
typedef pthread_mutex_t isc_mutex_t;
/* XXX We could do fancier error handling... */