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

Comparing ray/src/rt/pmapdata.c (file contents):
Revision 2.16 by greg, Wed Sep 28 22:19:18 2016 UTC vs.
Revision 2.17 by greg, Thu Sep 29 20:51:07 2016 UTC

# Line 141 | Line 141 | void flushPhotonHeap (PhotonMap *pmap)
141     /*if (pwrite(fd, pmap -> heapBuf, len, lseek(fd, 0, SEEK_END)) != len) */
142     if (write(fd, pmap -> heapBuf, len) != len)
143        error(SYSTEM, "failed append to heap file in flushPhotonHeap");
144 <  
144 >
145 > #if !defined(_WIN32) && !defined(_WIN64)
146     if (fsync(fd))
147        error(SYSTEM, "failed fsync in flushPhotonHeap");
148 <      
148 > #endif
149     pmap -> heapBufLen = 0;
150   }
151  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines