mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
seems printf isn't threadsafe
This commit is contained in:
parent
773eda1929
commit
ccea0d5d5d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue