Re: Fwd: A question about multithreading in gecko using javascript

2012-12-20 Thread Ray You
AL <http://dxr.mozilla.org/search.cgi?tree=mozilla-central&string=NS_DISPATCH_NORMAL>); I notice that there are assertions on both /NS_IsMainThread()/ and /!NS_IsMainThread()/. Seems like it really starts a backstage thread in DeviceStorage implementation. Is this true?/ / -- Best regards, ??(Ray

Fwd: A question about multithreading in gecko using javascript

2012-12-19 Thread Ray You
How can we start a real thread in gecko using javascript and use XPCOM in it? Is dispatching events to /nsIStreamTransportService/ or /nsIThreadManager.newThread(0) /the right way? -- Best regards, ??(Ray You) Original Message Message-ID: <50d1787d.8