I am trying to understand the code in this How to use QThread correctly in pyqt with moveToThread()?
The portion that has:
mainwin.__init__ : MainThread, 140221684574016,
GenericWorker.__init__ : MainThread, 140221684574016,
GenericWorker.run : Dummy-1, 140221265458944,
mainwin.addBatch : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944,
mainwin.add : Dummy-1, 140221265458944
is of interest to me, what are the Dummy -1 elements exactly, my understanding is that these are worker threads doing a job, but will they remain "alive" for ever? or will they be garbage collected on their own. If add batch was done 10k times would the code output have 10k Dummy-1 items? I only ask because I have seen similar output when using subclassed Qthreads, (using Pydev in Eclispe while running code in debug mode).
I am not sure if this means some kind of leak (a thread leak) that would eventually consume lots and lots of resource.