You can use nsISocketTransportService from any thread, but nsIChannel is main thread only.
-Darin On 3/2/06, Mete Ciragan <[EMAIL PROTECTED]> wrote: > I'm writing a Mozilla plugin with the Gecko SDK. It's rendering terrain and > pages tiles of the terrain in a separate thread. Now I've read in the test > file (which does not compile) > http://lxr.mozilla.org/mozilla/source/netwerk/test/TestThreadedIO.cpp that > threaded IO won't work. Is it really not possible to download files from > another thread than the main thread? I tried blocking/synchronous and > non-blocking/asynchronous downloads. And they fail either in > nsIEventQueueService::GetThreadEventQueue or nsIChannel::Open. Both return 0 > when called from the main thread and 0x80040111 (NS_ERROR_NOT_AVAILABLE, > Returned when an operation can't complete due to an unavailable resource). > > Can anyone confirm this, and if not, give an example on how to download > files in a thread other than the main thread? > > Thanks in advance and greetings, > Mete Ciragan > > --- > ViewTec AG > www.viewtec.ch > > > _______________________________________________ > dev-tech-network mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-network > _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
