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:
3
CHANGES
3
CHANGES
@@ -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>.
|
||||
|
||||
@@ -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); \
|
||||
|
||||
@@ -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... */
|
||||
|
||||
Reference in New Issue
Block a user