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

2012-12-20 Thread Ray You
1. Can we call XPCOM in js-ctype code? 2. What about this code in DeviceStorage implementation? https://mxr.mozilla.org/mozilla-central/source/dom/devicestorage/nsDeviceStorage.cpp#1121 nsCOMPtrhttp://dxr.mozilla.org/search.cgi?tree=mozilla-central&string=nsIEventTarget>>target

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

2012-12-20 Thread Neil
David Rajchenbach-Teller wrote: On 12/20/12 7:27 AM, Ray You wrote: 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? I don't think this is supported anym

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

2012-12-20 Thread David Rajchenbach-Teller
On 12/20/12 7:27 AM, Ray You wrote: > 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? I don't think this is supported anymore. As far as I can tell, if you

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.8010...@mozilla.co