On Sun, Nov 17, 2013 at 07:12:12PM +0800, Åke Kullenberg <ake.kullenb...@gmail.com> wrote: > want to move the watcher to another place on the heap. I would assume > libev's internal data structures don't allow for this while the watcher is > started, but how about when it's stopped? Is this assumption correct? If > not, how can it be done?
Ok, after discussing this, we concluded that we won't officially allow it at this time - while it would work with the current code, we don't consider the use case (copying memory blocks with watchers in them) big enough to outweigh the commitment this would put on future versions. This means that currently, you have to "copy" the watchers by calling ev_TYPE_init on the new watcher structure. -- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / schm...@schmorp.de -=====/_/_//_/\_,_/ /_/\_\ _______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev