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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.43 by greg, Sat Aug 1 23:27:04 2015 UTC vs.
Revision 3.44 by greg, Sun Aug 23 00:56:00 2015 UTC

# Line 789 | Line 789 | SDgetTreCDist(const FVECT inVec, SDComponent *sdc)
789          for (i = sdt->stc[tt_Y]->ndim - 2; i--; )
790                  inCoord[i] = floor(inCoord[i]/quantum)*quantum + .5*quantum;
791          cdlast = NULL;                  /* check for direction in cache list */
792 +        /* PLACE MUTEX LOCK HERE FOR THREAD-SAFE */
793          for (cd = (SDTreCDst *)sdc->cdList; cd != NULL;
794                                          cdlast = cd, cd = cd->next) {
795                  if (cd->sidef != mode)
# Line 807 | Line 808 | SDgetTreCDist(const FVECT inVec, SDComponent *sdc)
808                  cd->next = (SDTreCDst *)sdc->cdList;
809                  sdc->cdList = (SDCDst *)cd;
810          }
811 +        /* END MUTEX LOCK */
812          return (SDCDst *)cd;            /* ready to go */
813   }
814  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines