Thanks. So, does it mean that the streaming must be done from the main thread and block the UI thread until the stream is finished (in case of blocking streams)?
Annie -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Boris Zbarsky Sent: Thursday, August 18, 2011 4:01 PM To: [email protected] Subject: Re: Mozilla streaming on a background thread On 8/18/11 7:50 AM, Fizitzky, Annie wrote: > So, I opened a new thread (by calling NS_NewThread) and executed > nsIHttpChannel::asyncOpen() on that thread. The nsIChannel APIs can only be used from the main thread. So you can't do what you're trying to do. > It seems that the nsIHttpChannel doesn't support multi-threaded > streaming. That's correct. > Are there any other thread-safe versions of these streaming interfaces? There are not yet. -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
