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:
parent
cb18f33caf
commit
00b731fa0b
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user