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

Comparing ray/src/rt/raypcalls.c (file contents):
Revision 2.15 by greg, Wed Sep 12 03:57:00 2007 UTC vs.
Revision 2.16 by greg, Sat Sep 15 02:47:56 2007 UTC

# Line 308 | Line 308 | ray_presult(           /* check for a completed ray */
308                  n = ray_pnprocs - ray_pnidle;
309          if (n <= 0)                     /* return if nothing to await */
310                  return(0);
311 +        if (!poll && ray_pnprocs == 1)  /* one process -> skip select() */
312 +                FD_SET(r_proc[0].fd_recv, &readset);
313 +
314   getready:                               /* any children waiting for us? */
315          for (pn = ray_pnprocs; pn--; )
316                  if (FD_ISSET(r_proc[pn].fd_recv, &readset) ||

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines