mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
2285. [func] Test framework for client memory context management.
[RT #17377]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mem.c,v 1.137 2007/11/26 04:27:19 marka Exp $ */
|
||||
/* $Id: mem.c,v 1.138 2008/01/02 05:03:07 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1955,6 +1955,18 @@ isc_mem_checkdestroyed(FILE *file) {
|
||||
UNLOCK(&lock);
|
||||
}
|
||||
|
||||
unsigned int
|
||||
isc_mem_references(isc_mem_t *ctx) {
|
||||
unsigned int references;
|
||||
REQUIRE(VALID_CONTEXT(ctx));
|
||||
|
||||
MCTXLOCK(ctx, &ctx->lock);
|
||||
references = ctx->references;
|
||||
MCTXUNLOCK(ctx, &ctx->lock);
|
||||
|
||||
return (references);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBXML2
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user