> 1. Our networking event loop that is based on zeromq/pyzmq
> 2. A single GUI event loop from wx, qt4, etc.
> 
> We do this by triggering an iteration of our networking
> event loop on a periodic GUI timer.

So right now you're in a loop in which you let qt4 (or wx) watch the file 
descriptors qt4 needs, then zeromq the file descriptors that zeromq needs, and 
so on?

Just use the qt4 event loop to watch both the file descriptors zeromq wants to 
watch, in addition to whatever events qt4 needs. Qt4 already has the API that 
allows you to do this (QSocketNotifier et al.). I am not familiar with zeromq, 
but if there is a way to determine which file descriptors it wants to watch 
then you're almost done. If not, you could discuss this with the zeromq 
developers. Then you won't need to poll, you'll get better response times, and 
the code will be scalable too.

Best,
--Michiel.


      

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to