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

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.23 by greg, Wed Aug 14 20:07:20 2019 UTC vs.
Revision 2.24 by greg, Wed Sep 4 20:19:51 2019 UTC

# Line 148 | Line 148 | getostream(const char *ospec, const char *mname, int b
148                  if (!noopen & !using_stdout) {
149                          if (outfmt != 'a')
150                                  SET_FILE_BINARY(stdout);
151 + #ifdef getc_unlocked
152 +                        flockfile(stdout);      /* avoid lock/unlock overhead */
153 + #endif
154                          if (header) {
155                                  cp = info;
156                                  if (yres > 0) {
# Line 164 | Line 167 | getostream(const char *ospec, const char *mname, int b
167                          if (waitflush > 0)
168                                  fflush(stdout);
169                          stdos.xr = xres; stdos.yr = yres;
167 #ifdef getc_unlocked
168                        flockfile(stdout);      /* avoid lock/unlock overhead */
169 #endif
170                          using_stdout = 1;
171                  }
172                  stdos.ofp = stdout;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines