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

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


On Tue, Dec 09, 2008 at 10:52:09PM +1300, Samuel Williams <samuel.williams at mac.com> 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_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list