Re: Thread save GUI parts?
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 9/19/09 10:04 AM, Georg Maaß wrote: > Ok, if exception throwing in the bg thread does not cause crashes, when > it is displayed in the error console, is it also possible to use the > same mechanismn the error console uses to get informed about exceptions > in bg threads without crashing to inform a progress bar about progress > updates without crashing. If this is possible, what exactly are the > steps to implement for me to let me do long run jobs in back ground with > informing a progressbar about progress updates. You can just post runnables to the main thread to notify the progressbar. Or if you insist on using the exact same mechanism as the console service, see http://mxr.mozilla.org/mozilla-central/source/xpcom/proxy/public/nsIProxyObjectManager.idl#82 -Boris _______________________________________________ dev-tech-dom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-dom