Main thread entry
On 03/04/2015 at 19:09, xxxxxxxx wrote:
I managed to handle several tasks in several threads, while the original task in the main thread is already finished.
Is there a way to enter the main thread again and if not, is it possible to start a new script from a running script ?
Thanks in advance
On 07/04/2015 at 06:40, xxxxxxxx wrote:
you can use SpecialEventAdd() in your thread and then have e.g. a MessageData plugin to receive the event, which will then be in the main thread again.
On 09/04/2015 at 02:57, xxxxxxxx wrote:
thanks for the hint ! I´ll give it a try.
It seems to take a little longer, but I´ll report if I can handle it.
On 11/05/2015 at 12:47, xxxxxxxx wrote:
the solution with a message data plugin works quite well. Thanks!
Some notes: It´s a little tricky to find the right timing guaranteeing that every other thread can start.
And more important keeping track of your threads to end them accordingly, otherwise they will run as long as you shut down your system.