[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-ui-dev] Progress reporting article
|
It should be possible to do parallel work like that but it would be difficult. Progress monitors are single threaded. You could use a Databinding Realm on the thread with access to the root monitor and it could allow other threads to run code on the thread with access to the progress monitor.
Then you could create child monitors on a number of other threads, and each time you invoke a method on a child monitor, it can use Realm.asyncExec to get onto the root monitor's thread and pass along the progress.
If we were to write a utility for performing - say - a parallel for loop, that sort of progress monitor could be part of it.
On 04/23/2016 05:44 AM, Stefan Xenos
wrote:
Thanks for this article Stefan, it's easy to read and understand.
I'll keep it in my favourites ;)
Just a question, are you aware of any way (or plan) to have the
SubMonitor supporting parallel work, such as a SubMonitor which
would be split into 2 (let's say 1/3 and 2/3 of total ticks), and
each child would run jobs and report progress in parallel ?
Cheers,
_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev