Revision: 54545
http://brlcad.svn.sourceforge.net/brlcad/?rev=54545&view=rev
Author: brlcad
Date: 2013-03-06 22:32:56 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
the motivation for RT_GET_TREE()/RT_FREE_TREE() and keeping a free list in the
resource structure may be moot or at least unnecessary now, but warrants
performance testing
Modified Paths:
--------------
brlcad/trunk/include/raytrace.h
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2013-03-06 22:27:28 UTC (rev 54544)
+++ brlcad/trunk/include/raytrace.h 2013-03-06 22:32:56 UTC (rev 54545)
@@ -1225,6 +1225,8 @@
* pointer (during RT_FREE_TREE) as a single-linked list using the
* tb_left field. Requests for new nodes are pulled first from that
* list or allocated fresh if needed.
+ *
+ * DEPRECATED, use BU_GET()
*/
#define RT_GET_TREE(_tp, _res) { \
if (((_tp) = (_res)->re_tree_hd) != TREE_NULL) { \
@@ -1245,6 +1247,8 @@
* actually freeing the nodes, they are added to a single-linked list
* in rt_tree_hd down the tb_left field. Requests for new nodes (via
* RT_GET_TREE()) pull from this list instead of allocating new nodes.
+ *
+ * DEPRECATED, use BU_PUT()
*/
#define RT_FREE_TREE(_tp, _res) { \
(_tp)->tr_b.tb_left = (_res)->re_tree_hd; \
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits