Simple patch for ev_loop struct to make life a bit easier.

Marc Lehmann schmorp at
Wed Dec 10 23:31:19 CET 2008

On Tue, Dec 09, 2008 at 10:52:09PM +1300, Samuel Williams <samuel.williams at> wrote:
> When there are multiple run-loops, it is useful to bind data to a run- 
> loop for dereferencing a data structure wrapping the run-loop.

Can you make a motivating example that can't be solved different?

> This is a very small patch, but is very useful, so I thought I'd share  
> it.

Unfortunately, I cannot see how it would be helpful - the existing code
doesn't use the data member, and the ev_loop struct is private so no other
code access it.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list