BRL-CAD
|
#include <resource.h>
Data Fields | |
uint32_t | re_magic |
Magic number. More... | |
int | re_cpu |
processor number, for ID More... | |
struct bu_list | re_seg |
Head of segment freelist. More... | |
struct bu_ptbl | re_seg_blocks |
Table of malloc'ed blocks of segs. More... | |
long | re_seglen |
long | re_segget |
long | re_segfree |
struct bu_list | re_parthead |
Head of freelist. More... | |
long | re_partlen |
long | re_partget |
long | re_partfree |
struct bu_list | re_solid_bitv |
head of freelist More... | |
struct bu_list | re_region_ptbl |
head of freelist More... | |
struct bu_list | re_nmgfree |
head of NMG hitmiss freelist More... | |
union tree ** | re_boolstack |
Stack for rt_booleval() More... | |
long | re_boolslen |
# elements in re_boolstack[] More... | |
float * | re_randptr |
ptr into random number table More... | |
long | re_nshootray |
Calls to rt_shootray() More... | |
long | re_nmiss_model |
Rays pruned by model RPP. More... | |
long | re_shots |
# calls to ft_shot() More... | |
long | re_shot_hit |
ft_shot() returned a miss More... | |
long | re_shot_miss |
ft_shot() returned a hit More... | |
long | re_prune_solrpp |
shot missed solid RPP, ft_shot skipped More... | |
long | re_ndup |
ft_shot() calls skipped for already-ft_shot() solids More... | |
long | re_nempty_cells |
number of empty spatial partitioning cells passed through More... | |
struct rt_piecestate * | re_pieces |
array [rti_nsolids_with_pieces] More... | |
long | re_piece_ndup |
ft_piece_shot() calls skipped for already-ft_shot() solids More... | |
long | re_piece_shots |
# calls to ft_piece_shot() More... | |
long | re_piece_shot_hit |
ft_piece_shot() returned a miss More... | |
long | re_piece_shot_miss |
ft_piece_shot() returned a hit More... | |
struct bu_ptbl | re_pieces_pending |
pieces with an odd hit pending More... | |
union tree * | re_tree_hd |
Head of free trees. More... | |
long | re_tree_get |
long | re_tree_malloc |
long | re_tree_free |
struct directory * | re_directory_hd |
struct bu_ptbl | re_directory_blocks |
Table of malloc'ed blocks. More... | |
One of these structures is needed per thread of execution, usually with calling applications creating an array with at least MAX_PSW elements. To prevent excessive competition for free structures, memory is now allocated on a per-processor basis. The application structure a_resource element specifies the resource structure to be used; if uniprocessing, a null a_resource pointer results in using the internal global structure (&rt_uniresource), making initial application development simpler.
Note that if multiple models are being used, the partition and bitv structures (which are variable length) will require there to be ncpus * nmodels resource structures, the selection of which will be the responsibility of the application.
Applications are responsible for calling rt_init_resource() on each resource structure before letting LIBRT use them.
Per-processor statistics are initially collected in here, and then posted to rt_i by rt_add_res_stats().
Definition at line 61 of file resource.h.
uint32_t re_magic |
Magic number.
Definition at line 62 of file resource.h.
int re_cpu |
processor number, for ID
Definition at line 63 of file resource.h.
struct bu_list re_seg |
Head of segment freelist.
Definition at line 64 of file resource.h.
struct bu_ptbl re_seg_blocks |
Table of malloc'ed blocks of segs.
Definition at line 65 of file resource.h.
long re_seglen |
Definition at line 66 of file resource.h.
long re_segget |
Definition at line 67 of file resource.h.
long re_segfree |
Definition at line 68 of file resource.h.
struct bu_list re_parthead |
Head of freelist.
Definition at line 69 of file resource.h.
long re_partlen |
Definition at line 70 of file resource.h.
long re_partget |
Definition at line 71 of file resource.h.
long re_partfree |
Definition at line 72 of file resource.h.
struct bu_list re_solid_bitv |
head of freelist
Definition at line 73 of file resource.h.
struct bu_list re_region_ptbl |
head of freelist
Definition at line 74 of file resource.h.
struct bu_list re_nmgfree |
head of NMG hitmiss freelist
Definition at line 75 of file resource.h.
union tree** re_boolstack |
Stack for rt_booleval()
Definition at line 76 of file resource.h.
long re_boolslen |
# elements in re_boolstack[]
Definition at line 77 of file resource.h.
float* re_randptr |
ptr into random number table
Definition at line 78 of file resource.h.
long re_nshootray |
Calls to rt_shootray()
Definition at line 80 of file resource.h.
long re_nmiss_model |
Rays pruned by model RPP.
Definition at line 81 of file resource.h.
long re_shots |
# calls to ft_shot()
Definition at line 83 of file resource.h.
long re_shot_hit |
ft_shot() returned a miss
Definition at line 84 of file resource.h.
long re_shot_miss |
ft_shot() returned a hit
Definition at line 85 of file resource.h.
long re_prune_solrpp |
shot missed solid RPP, ft_shot skipped
Definition at line 87 of file resource.h.
long re_ndup |
ft_shot() calls skipped for already-ft_shot() solids
Definition at line 88 of file resource.h.
long re_nempty_cells |
number of empty spatial partitioning cells passed through
Definition at line 89 of file resource.h.
struct rt_piecestate* re_pieces |
array [rti_nsolids_with_pieces]
Definition at line 91 of file resource.h.
long re_piece_ndup |
ft_piece_shot() calls skipped for already-ft_shot() solids
Definition at line 92 of file resource.h.
long re_piece_shots |
# calls to ft_piece_shot()
Definition at line 93 of file resource.h.
long re_piece_shot_hit |
ft_piece_shot() returned a miss
Definition at line 94 of file resource.h.
long re_piece_shot_miss |
ft_piece_shot() returned a hit
Definition at line 95 of file resource.h.
struct bu_ptbl re_pieces_pending |
pieces with an odd hit pending
Definition at line 96 of file resource.h.
union tree* re_tree_hd |
Head of free trees.
Definition at line 98 of file resource.h.
long re_tree_get |
Definition at line 99 of file resource.h.
long re_tree_malloc |
Definition at line 100 of file resource.h.
long re_tree_free |
Definition at line 101 of file resource.h.
struct directory* re_directory_hd |
Definition at line 102 of file resource.h.
struct bu_ptbl re_directory_blocks |
Table of malloc'ed blocks.
Definition at line 103 of file resource.h.