You can use CreateMonitoredThreadEventQueue.
Eventually, I plan on making it so that you don't have to have a nsIEventQueue, but just a nsIEventTarget. Both the IO threads and the socket transport thread support nsIEventTarget.
-Darin
[EMAIL PROTECTED] wrote:
Hi all,
I'd like to know more about this method (see subject). I need to call it in another then the main thread (e.g. one of io thread fro the pool or socket transport service thread) to create event queue to make nsIInputStreamPump be able to run on other then the main thread.
But this is not possible - i got assertion "Native event queues should only be used on the main thread" during call of the method mentioned in subject. Pump is initialized succesfully (no error code is returned) but is not working (no callback are given).
Similar problem is during initialization of nsAsyncStreamCopier implementation in other then the main thread. But as described in its documentation it works only on temporary abckground thread.
My questions are: - Is it possible to create event queues on other then main thread? - Is it possible to init the input stream pump and async stream coppier not to work on the main thread?
Thanks very much for suggestions.
-hb-
_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib
_______________________________________________ Mozilla-netlib mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-netlib
