0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

finished threads go to front of line (faster)

This commit is contained in:
Mathias Stearn 2010-01-11 20:47:22 -05:00
parent cb18f33caf
commit 00b731fa0b

View File

@ -126,7 +126,7 @@ void ThreadPool::task_done(Worker* worker){
worker->set_task(_tasks.front());
_tasks.pop_front();
}else{
_freeWorkers.push_back(worker);
_freeWorkers.push_front(worker);
}
_tasksRemaining--;