mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
<isc/mutex.h> does not need <isc/lang.h> or <isc/result.h>.
This commit is contained in:
parent
878363c06b
commit
947bd6c648
6 changed files with 7 additions and 7 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
96. [cleanup] <isc/mutex.h> does not need <isc/lang.h> or
|
||||
<isc/result.h>.
|
||||
|
||||
95. [cleanup] <isc/mutexblock.h> does not need <isc/result.h>.
|
||||
|
||||
94. [cleanup] Some installed header files did not compile as C++.
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include <isc/assertions.h>
|
||||
#include <isc/heap.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
/*
|
||||
* Note: to make heap_parent and heap_left easy to compute, the first
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/mutex.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include <isc/error.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/ondestroy.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
#ifndef ISC_SINGLETHREADED
|
||||
#include <isc/mutex.h>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <isc/mutex.h>
|
||||
#include <isc/mutexblock.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
isc_result_t
|
||||
isc_mutexblock_init(isc_mutex_t *block, unsigned int count) {
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef pthread_mutex_t isc_mutex_t;
|
||||
|
||||
/* XXX We could do fancier error handling... */
|
||||
|
|
@ -45,6 +40,4 @@ typedef pthread_mutex_t isc_mutex_t;
|
|||
((pthread_mutex_destroy((mp)) == 0) ? \
|
||||
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_MUTEX_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue