Commit 947bd6c6 authored by David Lawrence's avatar David Lawrence
Browse files

<isc/mutex.h> does not need <isc/lang.h> or <isc/result.h>.

parent 878363c0
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 */
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