mutexblock.h File Reference

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


Detailed Description

Definition in file mutexblock.h.


Define Documentation

#define ISC_MUTEXBLOCK_H   1

Definition at line 21 of file mutexblock.h.


Function Documentation

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:

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:15 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha