Revision: 42440
http://brlcad.svn.sourceforge.net/brlcad/?rev=42440&view=rev
Author: brlcad
Date: 2011-01-19 08:49:02 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
move the related decls closer to each other for the two rt/db_alloc routines
Modified Paths:
--------------
brlcad/trunk/include/raytrace.h
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2011-01-19 08:46:04 UTC (rev 42439)
+++ brlcad/trunk/include/raytrace.h 2011-01-19 08:49:02 UTC (rev 42440)
@@ -2508,9 +2508,6 @@
/* rt_fastf_float, rt_mat_dbmat, rt_dbmat_mat
* declarations moved to db.h */
-/* storage obtainers */
-RT_EXPORT BU_EXTERN(void rt_alloc_seg_block, (struct resource *res));
-
RT_EXPORT BU_EXTERN(void rt_cut_it,
(struct rt_i *rtip,
int ncpu));
@@ -3140,6 +3137,16 @@
*/
RT_EXPORT BU_EXTERN(void db_alloc_directory_block, (struct resource *resp));
+/**
+ * R T _ A L L O C _ S E G _ B L O C K
+ *
+ * This routine is called by the GET_SEG macro when the freelist is
+ * exhausted. Rather than simply getting one additional structure, we
+ * get a whole batch, saving overhead. When this routine is called,
+ * the seg resource must already be locked. malloc() locking is done
+ * in bu_malloc.
+ */
+RT_EXPORT BU_EXTERN(void rt_alloc_seg_block, (struct resource *res));
/* db_match.c */
RT_EXPORT BU_EXTERN(void db_update_nref,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits