many.c File Reference

#include "common.h"
#include <stdio.h>
#include <math.h>
#include "machine.h"
#include "bu.h"
#include "vmath.h"
#include "bn.h"
#include "raytrace.h"

Include dependency graph for many.c:

Go to the source code of this file.

Data Structures

struct  rt_many_internal

Defines

#define RT_MANY_INTERNAL_MAGIC   0x526d6970
#define RT_CK_RMI(_p)   BU_CKMAG(_p, RT_MANY_INTERNAL_MAGIC, "rt_many_internal")

Functions

void rt_shoot_many_rays_worker (int cpu, genptr_t arg)
void rt_shoot_many_rays (const struct application *proto_ap, int(*callback)(struct application *, int), int ncpus, long int nrays, struct resource *resources)


Detailed Description

Wrapper routines to help fire multiple rays in parallel, without exposing the caller to the details of running in parallel.

Authors - Michael John Muuss Christopher T. Johnson

Source - The U. S. Army Research Laboratory Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file many.c.


Define Documentation

#define RT_MANY_INTERNAL_MAGIC   0x526d6970
 

Definition at line 66 of file many.c.

#define RT_CK_RMI _p   )     BU_CKMAG(_p, RT_MANY_INTERNAL_MAGIC, "rt_many_internal")
 

Definition at line 67 of file many.c.

Referenced by rt_shoot_many_rays_worker().


Function Documentation

void rt_shoot_many_rays_worker int  cpu,
genptr_t  arg
 

Definition at line 79 of file many.c.

References application::a_resource, application::a_x, bu_log(), bu_semaphore_acquire(), bu_semaphore_release(), rt_many_internal::cur_index, LOCAL, rt_many_internal::max_index, MAX_PSW, rt_many_internal::proto_ap, rt_many_internal::resources, rt_bomb(), RT_CK_APPLICATION, RT_CK_RESOURCE, RT_CK_RMI, RT_SEM_WORKER, rt_shootray(), rt_many_internal::sem_chunk, rt_many_internal::stop_worker, and void().

Here is the call graph for this function:

void rt_shoot_many_rays const struct application proto_ap,
int(*)(struct application *, int)  callback,
int  ncpus,
long int  nrays,
struct resource resources
 

Definition at line 164 of file many.c.

References rt_many_internal::proto_ap, rt_many_internal::resources, RT_CK_APPLICATION, and RT_CK_RESOURCE.


Generated on Mon Sep 18 01:25:07 2006 for BRL-CAD by  doxygen 1.4.6