Hi,

I am using a worker thread, executing calls asynchronously in that
thread. I am using the proxy object manager to dispatch. On the branch
the code somehow looks like:

var thread = Components.classes["@mozilla.org/thread;1"]
    .createInstance(Components.interfaces.nsIThread);
eventTarget = eventQueueService.createFromIThread(
    thread, true /*aNative*/);
proxyObjectManager.getProxyForObject(
    eventTarget, ...,
    Components.interfaces.nsIProxyObjectManager.INVOKE_ASYNC);

On the trunk, I am using the (new) thread manager service, creating the
thread using newthread(0) (witohut the need to explicitly create an
event queue), rest of the code looks similar.

Now my problem occurs when the thread enters UI calls, e.g. raises a
dialog. On the branch, everything works fine whereas on the trunk the
application deadlocks.

What's wrong? Do I need to explicitly dispatch to the UI thread on the
trunk?

thanks in advance,
-Daniel
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to