-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BRUYET Xavier wrote:
> Is there something to call a graphical function (for example, 
> window->setSize()) from a thread ? Something like postEvent() 
> in Qt or gdk_threads_enter/leave in gtk ?

The trick I use for calling methods on other threads is XPCOM thread
proxies: http://www.mozilla.org/projects/xpcom/Proxies.html

Basically you get a proxy for an object that's owned by another thread
and then you can call methods on it and they'll be called on the other
thread like magic (either synchronously or asynchronously). It seems to
work pretty well.

Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEc0jnrnQMWJ+7dNARAm4lAKCEXDI6/0brT32a+S9GdRNarrxJXACfRaAE
XV/0o+/IALwRS3Osa0km5sM=
=9ogJ
-----END PGP SIGNATURE-----
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to