^NyAw^
3rd October 2013, 10:58
Hi,
I have a Thread that emits "results" that have to be computed in the main Thread. The Thread emits a signal like "mySignal(bool)" so the result of the processing is passed to the main Thread. The problem is that the Main Event Loop joins a group of those signals into one slot call because the signals contain the same value:
true
true
true
true
...
true
false
true
true
true
...
Using a random value as a second argument will force the Main Event Loop to call the slot for every signal emitted?
I need this because in the Main Thread there is a IO card that must activate or deactivate some Outputs. For the complexity of the application it can't be done directly on the worker thread as could be there more than a thread that give results and then this results are joined and finally must activate the Outputs according this joined result.
Thanks,
I have a Thread that emits "results" that have to be computed in the main Thread. The Thread emits a signal like "mySignal(bool)" so the result of the processing is passed to the main Thread. The problem is that the Main Event Loop joins a group of those signals into one slot call because the signals contain the same value:
true
true
true
true
...
true
false
true
true
true
...
Using a random value as a second argument will force the Main Event Loop to call the slot for every signal emitted?
I need this because in the Main Thread there is a IO card that must activate or deactivate some Outputs. For the complexity of the application it can't be done directly on the worker thread as could be there more than a thread that give results and then this results are joined and finally must activate the Outputs according this joined result.
Thanks,