Diaa wrote: > Is there any example/sample code that I can use as a guide? > How to use the listener, for example, from the main thread when the > data is actually received in the worker thread?
Unfortunately I'm not aware of any sample code for this. As for calling the listener, all you have to do is use nsIProxyObjectManager::GetProxyForObject (or the NS_GetProxyForObject helper method) at asyncOpen time (make sure to pass PROXY_ALWAYS), then you can just call methods on that object from any thread and have the calls be forwarded to the correct thread. -christian _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
