[zeromq-dev] basic question - integrating zmq with a windows message pump
David.Briant at ubs.com
David.Briant at ubs.com
Fri Aug 20 10:01:19 CEST 2010
Is it possible to integrate zmq into a standard MS Windows message
pump/loop? The only option I can see so far is to have zmq on a separate
thread, have queues in shared memory (i.e. shared between the two
threads), use PostMessage to inform the UI thread a message has arrived
and call the send method in zmq from the windows thread - little
concerned with the cross thread call into zmq but since I'm in python
with the GIL I figure it may be okay in this instance.
If I could write my own message pump I can do a short poll on zmq (which
my concern is would slow down the UI) but I don't always have access to
the pump, especially if using a 3rd party widget set.
I'd prefer to have the zmq on the same thread as the UI, i.e. doing
something equivalent to QSAAsyncSelect. If this is possible I would like
to use zmq for intra-process, inter-thread communication.
Am I missing something?
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.
UBS Limited is a company registered in England & Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.
UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.
UBS Clearing and Execution Services Limited is a company registered
in England & Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.
UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.
More information about the zeromq-dev