ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rcontrib.c
(Generate patch)

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.44 by greg, Fri Feb 23 03:45:52 2024 UTC vs.
Revision 2.45 by greg, Wed Aug 21 20:42:20 2024 UTC

# Line 12 | Line 12 | static const char RCSid[] = "$Id$";
12   #include "otypes.h"
13   #include "source.h"
14  
15 char    *shm_boundary = NULL;           /* boundary of shared memory */
16
15   CUBE    thescene;                       /* our scene */
16   OBJECT  nsceneobjs;                     /* number of objects in our scene */
17  
# Line 226 | Line 224 | rcinit(void)
224          if (nproc > MAXPROCESS)
225                  sprintf(errmsg, "too many processes requested -- reducing to %d",
226                                  nproc = MAXPROCESS);
227 <        if (nproc > 1) {
228 <                preload_objs();         /* preload auxiliary data */
231 <                                        /* set shared memory boundary */
232 <                shm_boundary = strcpy((char *)malloc(16), "SHM_BOUNDARY");
233 <        }
227 >        if (nproc > 1)
228 >                cow_memshare();         /* preload auxiliary data */
229          trace = trace_contrib;          /* set up trace call-back */
230          for (i = 0; i < nsources; i++)  /* tracing to sources as well */
231                  source[i].sflags |= SFOLLOW;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines