OSDN Git Service

Fixed a bug in AbstractTool class that could cause a severe slow-down on process...
authorLoRd_MuldeR <mulder2@gmx.de>
Fri, 5 Dec 2014 21:39:31 +0000 (22:39 +0100)
committerLoRd_MuldeR <mulder2@gmx.de>
Fri, 5 Dec 2014 21:39:31 +0000 (22:39 +0100)
commit67429fbada51a647977c419b2821bc72d78ace54
treecb36eae608ba29bc3db47e46721e4b6823e0df68
parent8211b417d658c36f6a84ffac35d4b196f36bab41
Fixed a bug in AbstractTool class that could cause a severe slow-down on process creation, especially with a large number of threads: The same mutex was used in the constructor and the startProcess() function, which is unnecessary anyway. But even worse, there was a sleep() call in the startProcess() function that could *block* the mutex for a very long time! So if the "main" thread tried to create a new object while one of the "worker" threads was sleeping inside startProcess(), this blocked the whole "main" thread. D'oh!
LameXP_VS2013.sln
doc/Changelog.html
src/Config.h
src/Tool_Abstract.cpp
src/Tool_Abstract.h