Now using a separate QSemaphore to limit the number of tasks in the queue of the...
commita291771153c495be821db71d6c8e257491493471
authorlordmulder <mulder2@gmx.de>
Fri, 25 May 2012 00:24:44 +0000 (25 02:24 +0200)
committerlordmulder <mulder2@gmx.de>
Fri, 25 May 2012 00:24:44 +0000 (25 02:24 +0200)
treed5a1bc69a4248ef0e59ae47c9eecb426c4f502f8
parent61dc8e34c447ab3d7e1b55838ba5d2b154f64a0c
Now using a separate QSemaphore to limit the number of tasks in the queue of the QThreadPool. Instead of starting exactly as many task as there are threads in the pool and adding a new task only after a running one finished, we will now keep a fixed number of tasks in the queue (currently hardcoded to 32). Since there always will be more tasks left in the queue than there are threads in the pool, we ensure that no thread will ever become idle. Might be slightly faster than the "old" approach.
etc/Deployment/_deploy.bat
etc/Deployment/_version.bat
etc/Translation/Blank.ts
etc/Translation/LameXP_PL.ts
etc/Translation/LameXP_SV.ts
src/Config.h
src/Dialog_MainWindow.cpp
src/Thread_FileAnalyzer.cpp
src/Thread_FileAnalyzer_Task.cpp
src/Thread_FileAnalyzer_Task.h