Add hashtable destroy
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 17:08:29 +0000 (12:08 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 17:11:14 +0000 (12:11 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/hashtable.c
lttng-sessiond/hashtable.h

index 6bca1dac010e1ae3457db98c9c254e9c01ba7935..956cfd426ea4ab106fee376ba922378ebacae677 100644 (file)
@@ -106,3 +106,8 @@ unsigned long hashtable_get_count(struct cds_lfht *ht)
 
        return count;
 }
+
+int hashtable_destroy(struct cds_lfht *ht)
+{
+       return cds_lfht_destroy(ht, NULL);
+}
index 5174eed7563d9577fb3d9c55b890a4a315d1809d..7212fb0e2b10dbec587c3853352e2f322c890da7 100644 (file)
@@ -36,5 +36,6 @@ void hashtable_node_init(struct cds_lfht_node *node,
 
 int hashtable_del(struct cds_lfht *ht, struct cds_lfht_iter *iter);
 unsigned long hashtable_get_count(struct cds_lfht *ht);
+int hashtable_destroy(struct cds_lfht *ht);
 
 #endif /* _LTT_HASHTABLE_H */
This page took 0.025063 seconds and 4 git commands to generate.