Pieter, Gmail surely does not like me today! Before I humiliate myself further: This is a function that is plugged into postgresql execution, which has to be single threaded. I have an opportunity at hand to do some parallel processing, but I can't create any threads. Hence, my attempts to use ZeroMQ.
Best regards Seref On Mon, Feb 18, 2013 at 10:45 AM, Pieter Hintjens <[email protected]> wrote: > Hi Seref, > > Can you explain the actual reason that you're constrained to using a > single thread? The short answer is no, you always need multiple > threads to use 0MQ. The longer answer is that if your environment is > very constrained you can write your own TCP code that can talk to 0MQ > networks. There are examples here: > https://github.com/hintjens/zmtplib. However you're going to lose > everything except basic message send/recv functionality. > > -Pieter > > On Mon, Feb 18, 2013 at 11:39 AM, Seref Arikan > <[email protected]> wrote: > > Greetings, > > I tried to use the shortest possible subject for my question, but it will > > take some explaining: > > > > I am writing code in a setting where I can write functions that are > called > > from an executing OS thread. The setting requires that my functions are > > executed in the calling thread, and they never, ever create another > thread. > > So all is strictly single threaded. > > > > Zero > > > > _______________________________________________ > > zeromq-dev mailing list > > [email protected] > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
