Dear Miguel, tasks that run in parallel are always application specific- a general model for background tasking is hard to implement. But since the MITK workbench uses Qt and Nokia gives us some great tools for threading, background calculations using Qt Threads is not too hard: http://doc.qt.digia.com/qt/threads.html Implement your time-consuming task as a Qt Thread, connect to the thread's finished signal and wait for the work to be done. Meanwhile, you have a reactive MITK user interface.
Best, Michael -----Ursprüngliche Nachricht----- Von: Miguel Nunes [mailto:[email protected]] Gesendet: Mittwoch, 28. November 2012 14:15 An: [email protected] Betreff: [mitk-users] Different pluggins, same thread? Hello, I am using my own plugin attached to workbench, and when I run it, the workbench freezes. I mean, imagine I have a big while() cycle running in my plugin. While its running, I can't play with the rest of the workbench windows... and only after the processing is done, all the intereactions I tried to do are displayed instantly. Should I have a threaded plugin with boost? shouldn't the CTK/MITK architecture take care of this? thank you! Regards, Miguel ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
