#include <isc/lang.h>
#include <isc/mutex.h>
#include <isc/types.h>
Go to the source code of this file.
Defines | |
#define | ISC_MUTEXBLOCK_H 1 |
Functions | |
ISC_LANG_BEGINDECLS isc_result_t | isc_mutexblock_init (isc_mutex_t *block, unsigned int count) |
Initialize a block of locks. If an error occurs all initialized locks will be destroyed, if possible. | |
isc_result_t | isc_mutexblock_destroy (isc_mutex_t *block, unsigned int count) |
Destroy a block of locks. |
Definition in file mutexblock.h.
#define ISC_MUTEXBLOCK_H 1 |
Definition at line 21 of file mutexblock.h.
ISC_LANG_BEGINDECLS isc_result_t isc_mutexblock_init | ( | isc_mutex_t * | block, | |
unsigned int | count | |||
) |
Initialize a block of locks. If an error occurs all initialized locks will be destroyed, if possible.
Requires:
Definition at line 28 of file mutexblock.c.
References DESTROYLOCK, isc_mutex_init, and ISC_R_SUCCESS.
Referenced by dns_adb_create(), grow_entries(), and grow_names().
isc_result_t isc_mutexblock_destroy | ( | isc_mutex_t * | block, | |
unsigned int | count | |||
) |
Destroy a block of locks.
Requires:
Definition at line 47 of file mutexblock.c.
References isc_mutex_destroy, and ISC_R_SUCCESS.