[nanomsg] Re: threading guidelines, and is traditional unix single threaded mode possible?

  • From: "Jason E. Aten" <j.e.aten@xxxxxxxxx>
  • To: Martin Sustrik <sustrik@xxxxxxxxxx>
  • Date: Fri, 27 Sep 2013 00:06:38 -0700

On Thu, Sep 26, 2013 at 10:12 PM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:

> It should be possible to notify the worker threads in the case of
> prep-to-fork so that they stop polling and start waiting on the semaphore.
>
> In any case, I would say the whole thing will be extremely painful to
> implement, test and maintain. If you believe yourself to be pain-resistant
> enough you are of course welcome to experiment with it.
>

I would be willing to give it a try, certainly. Being able to
"fork-without-fear" would increase the utility of nanomsg for me
significantly.

I'm not familiar with nanomsg internals. Could you point me at where in the
source for the worker thread code would be best to insert the prep-to-fork
check?

Other related posts: