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
It is correct: the networking code is designed to be used only from the main
thread. It uses a worker thread model so that the main thread is never blocked.
--BDS
You can probably fix this specific issue by creating a monitored thread
event queue via nsIEventQueueService, but...
> Can anyone confirm this, and if not, give an example on how to download
> files in a thread other than the main thread?
...it is correct that channels are not currently designed to be used on
non-main threads, and are not threadsafe. It would be nice to fix that
eventually, but, for now they are main thread only. Sorry.
-Darin
> _______________________________________________
> dev-tech-network mailing list
> dev-tech...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-network
>