[asterisk-commits] rmudgett: branch rmudgett/ao2_red_black r374280 - /team/rmudgett/ao2_red_blac...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 2 18:26:45 CDT 2012


Author: rmudgett
Date: Tue Oct  2 18:26:41 2012
New Revision: 374280

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374280
Log:
Add ref debug tags to astobj2.c ref usage.

Modified:
    team/rmudgett/ao2_red_black/main/astobj2.c

Modified: team/rmudgett/ao2_red_black/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ao2_red_black/main/astobj2.c?view=diff&rev=374280&r1=374279&r2=374280
==============================================================================
--- team/rmudgett/ao2_red_black/main/astobj2.c (original)
+++ team/rmudgett/ao2_red_black/main/astobj2.c Tue Oct  2 18:26:41 2012
@@ -3687,8 +3687,8 @@
 	}
 	ao2_options = orig_obj->priv_data.options;
 
-	return __ao2_container_alloc_rbtree(ao2_options, self->common.options,
-		self->common.sort_fn, self->common.cmp_fn);
+	return ao2_t_container_alloc_rbtree(ao2_options, self->common.options,
+		self->common.sort_fn, self->common.cmp_fn, "Clone rbtree container");
 }
 
 /*!
@@ -4066,7 +4066,7 @@
 	if (tag) {
 		__ao2_ref_debug(obj_new, +1, tag, file, line, func);
 	} else {
-		__ao2_ref(obj_new, +1);
+		ao2_t_ref(obj_new, +1, "Container node creation");
 	}
 	node->common.obj = obj_new;
 	node->common.my_container = (struct ao2_container *) self;
@@ -5234,7 +5234,8 @@
 		return NULL;
 	}
 
-	self = __ao2_alloc(sizeof(*self), container_destruct, ao2_options);
+	self = ao2_t_alloc_options(sizeof(*self), container_destruct, ao2_options,
+		"New rbtree container");
 	return rb_ao2_container_init(self, container_options, sort_fn, cmp_fn);
 }
 




More information about the asterisk-commits mailing list