On Sun, Jul 27, 2014 at 04:59:54AM +0000, Fw Lei <[email protected]> wrote:
> But I want use multiprocess model, in my opinion just put ev_loop and all
> watches in shared memory, that will be OK.

Probably, but...

> My question is, how can I put the default ev_loop into shared memory?

You can't :)

You can create an eventfd (pipe, socketpair...) and use an I/O watcher on
that though, which is portable.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to