On Apr 12, 6:22 am, Benjamin Smedberg <[email protected]> wrote: > On 4/12/10 3:49 AM, [email protected] wrote: > > > My question is, how would I ensure my calls are > > thread safe? Does XPCOM guarantee that I can > > call the XPCOM interface functions from any thread > > and internally Firefox will ensure the > > thread safety? > > No. Most Mozilla interfaces are *not* thread safe, and you should only call > them from the main thread. Why are you trying to use threads? > > --BDS
Is main thread same as 'UI' thread? For example, if I click a button to submit a form. These will happen: 1. build a query string 2. send the HTTP Post/Get 3. get the html data back. 4. relayout the page. Are all these running in the Main Thread? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
