mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 04:30:00 -04:00
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:
parent
c403d3f7d6
commit
9c4f33b671
3 changed files with 7 additions and 0 deletions
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... */
|
||||
|
|
|
|||
Loading…
Reference in a new issue