Skip to content

Commit

Permalink
Busy Mode: When processing multiple tasks defer uploads until the end
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 15, 2012
1 parent 8b5f07c commit 2dd58ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/engine/portable/src/con_busy.c
Expand Up @@ -267,6 +267,10 @@ void Con_BusyList(BusyTask* tasks, int numTasks)
mode = task->mode | BUSYF_STARTUP;
// kludge end

// Accumulate uploads until the last task completes.
if(i < numTasks-1)
mode |= BUSYF_NO_UPLOADS;

// Busy mode invokes the worker on our behalf in a new thread.
task->retVal = Con_Busy(mode, currentTaskName, task->worker, task->workerData);
}
Expand Down

0 comments on commit 2dd58ce

Please sign in to comment.