Author: adrian.chadd
Date: Sat Mar 28 14:39:53 2009
New Revision: 13880
Modified:
branches/LUSCA_HEAD/libcb/cbdata.c
branches/LUSCA_HEAD/libcb/cbdata.h
Log:
Add in a memPoolInUseCount like routine for cbdata
Modified: branches/LUSCA_HEAD/libcb/cbdata.c
==============================================================================
--- branches/LUSCA_HEAD/libcb/cbdata.c (original)
+++ branches/LUSCA_HEAD/libcb/cbdata.c Sat Mar 28 14:39:53 2009
@@ -185,6 +185,13 @@
cbdata_types = CBDATA_FIRST_CUSTOM_TYPE + 1;
}
+
+int
+cbdataInUseCount(cbdata_type type)
+{
+ return memPoolInUseCount(cbdata_index[type].pool);
+}
+
void *
#if CBDATA_DEBUG
cbdataInternalAllocDbg(cbdata_type type, const char *file, int line)
Modified: branches/LUSCA_HEAD/libcb/cbdata.h
==============================================================================
--- branches/LUSCA_HEAD/libcb/cbdata.h (original)
+++ branches/LUSCA_HEAD/libcb/cbdata.h Sat Mar 28 14:39:53 2009
@@ -42,6 +42,7 @@
extern void cbdataInitType(cbdata_type type, const char *label, int size,
FREE * free_func);
extern cbdata_type cbdataAddType(cbdata_type type, const char *label, int
size, FREE * free_func);
extern int cbdataLocked(const void *p);
+extern int cbdataInUseCount(cbdata_type type);
extern int cbdataCount;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---