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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.23 by greg, Thu Oct 28 00:50:47 2004 UTC vs.
Revision 2.24 by greg, Wed May 25 04:44:25 2005 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9   #include  <ctype.h>
10  
11   #include  "platform.h"
12 #include  "rtprocess.h"
12   #include  "mkillum.h"
13   #include  "random.h"
14  
# Line 228 | Line 227 | init(int np)                           /* start rtrace and set up buffers */
227                  }
228                  if (maxbytes < 0)
229                          error(SYSTEM, "cannot start rtrace process");
231                if (!i && np > 1)
232                        sleep(2);       /* wait for persist file */
230                  rtp->bsiz = maxbytes/(6*sizeof(float));
231                  rtp->buf = (float *)malloc(6*sizeof(float)*rtp->bsiz--);
232                  rtp->dest = (float **)calloc(rtp->bsiz, sizeof(float *));
# Line 238 | Line 235 | init(int np)                           /* start rtrace and set up buffers */
235                  rtp->nrays = 0;
236                  if (i == np)            /* last process? */
237                          break;
238 +                if (np > 1)
239 +                        sleep(2);       /* wait for persist file */
240                  rtp->next = (struct rtproc *)malloc(sizeof(struct rtproc));
241                  if (rtp->next == NULL)
242                          error(SYSTEM, "out of memory in init");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines