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

Comparing ray/src/rt/pmapcontrib.c (file contents):
Revision 2.17 by rschregle, Tue Mar 20 19:55:33 2018 UTC vs.
Revision 2.18 by rschregle, Thu Jun 7 19:26:04 2018 UTC

# Line 392 | Line 392 | void distribPhotonContrib (PhotonMap* pm, unsigned num
392     }
393   #endif
394          
395 < #if PMAP_SIGUSR
395 > #ifdef PMAP_SIGUSR
396           signal(SIGUSR1, sigUsrDiags);
397   #endif        
398 <        
398 >
399 > #ifdef DEBUG_PMAP          
400           /* Output child process PID after random delay to prevent corrupted
401            * console output due to race condition */
402           usleep(1e6 * pmapRandom(rouletteState));
403 <         fprintf(stderr, "Proc %d: PID = %d\n", proc, getpid());
403 >         fprintf(stderr, "Proc %d: PID = %d "
404 >                 "(waiting 10 sec to attach debugger...)\n",
405 >                 proc, getpid());
406           /* Allow time for debugger to attach to child process */
407           sleep(10);
408 + #endif
409  
410           /* =============================================================
411            * 2-PASS PHOTON DISTRIBUTION
# Line 409 | Line 413 | void distribPhotonContrib (PhotonMap* pm, unsigned num
413            * Pass 2 (main): based on outcome of pass 1, estimate remaining
414            *                number of photons to emit to approximate target
415            *                count
416 <          * ============================================================= */        
416 >          * ============================================================= */
417           for (srcIdx = 0; srcIdx < nsources; srcIdx++) {
418   #ifndef PMAP_SIGUSR        
419              unsigned       portCnt, passCnt = 0, prePassCnt = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines