From 00b731fa0b35a36986eb98836fd96c534bcda25e Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Mon, 11 Jan 2010 20:47:22 -0500 Subject: [PATCH] finished threads go to front of line (faster) --- util/thread_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/thread_pool.cpp b/util/thread_pool.cpp index 92c9101d297..e20aab18034 100644 --- a/util/thread_pool.cpp +++ b/util/thread_pool.cpp @@ -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--;