mutexblock.c File Reference

#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.


Detailed Description

Definition in file mutexblock.c.


Function Documentation

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:

Returns:

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:

Returns:

Definition at line 47 of file mutexblock.c.

References isc_mutex_destroy, and ISC_R_SUCCESS.


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha