Changed the method to synchronize the analyzer threads: We now use QSet to maintain...
commitc18785ce1e9147de75a186d797570887e4f48575
authorlordmulder <mulder2@gmx.de>
Sun, 13 May 2012 22:50:16 +0000 (14 00:50 +0200)
committerlordmulder <mulder2@gmx.de>
Sun, 13 May 2012 22:50:16 +0000 (14 00:50 +0200)
tree7c16b8d51a11196ed91f2264c21fb51a6993a287
parent5f91fc8749728850e4d048ee50437fef44cdd50b
Changed the method to synchronize the analyzer threads: We now use QSet to maintain a list of the thread id's of all threads that are still running - instead of only recording the highest thread id that has finished. This way a thread can now actually check if there still is any running thread with a lower thread id. Before thread n could only check if thread n-1 has finished yet or not. As a result we can relax the waiting now. Only threads that want to emit a file will wait for the "previous" threads to finish.
13 files changed:
LameXP_VS2010.vcxproj
LameXP_VS2010.vcxproj.filters
doc/Changelog.html
etc/Translation/Blank.ts
etc/Translation/LameXP_PL.ts
etc/Translation/LameXP_SV.ts
src/Config.h
src/Dialog_MainWindow.cpp
src/Dialog_WorkingBanner.cpp
src/Thread_FileAnalyzer_ST.cpp [copied from src/Thread_FileAnalyzer_Task.cpp with 67% similarity]
src/Thread_FileAnalyzer_ST.h [copied from src/Thread_FileAnalyzer_Task.h with 60% similarity]
src/Thread_FileAnalyzer_Task.cpp
src/Thread_FileAnalyzer_Task.h