mdelfede Messages: 1307 Registered: September 2007
Ultimate Contributor
I guess it's not so simple.... What about mouse events ?
They come from main thread, go into view (which belongs to document running its own thread) and calls document functions asynchronously.
I say that because I tested it and it behaves quite weird.
By now I'm trying to re-direct all gui events from main thread into a FIFO inside each document, which is then processed synchronously by document thread.... Still don't know if it will work as I expect. I see the matter quite tricky....