#include <config.h>
#include <isc/mutexblock.h>
#include <isc/util.h>
Go to the source code of this file.
Functions | |
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.c.
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.