seems printf isn't threadsafe

This commit is contained in:
Bill Currie 2003-09-12 20:40:14 +00:00
parent 773eda1929
commit ccea0d5d5d

View file

@ -123,12 +123,14 @@ LightThread (void *l)
while (1) {
LOCK;
i = bspfileface++;
if (i < bsp->numfaces) {
printf ("%5d / %d\r", i, bsp->numfaces);
fflush (stdout);
}
UNLOCK;
if (i >= bsp->numfaces)
return 0;
printf ("%5d / %d\r", i, bsp->numfaces);
fflush (stdout);
LightFace (l, i);
}
}