[E-devel] [PATCH] epoll support for ecore (v2)

2010-05-17 Thread Mike McCormack
Hi All, Here's a second version of my patch, updated for various comments. It seems to pass the regression tests, and E still starts up. This version has lots more #ifdefs (sorry Vincent), to address Gustavo's comment that the #ifdefs should be inside functions, not outside them. I think this m

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Mike McCormack
Gustavo Sverzut Barbieri wrote: >> +void _ecore_main_loop_init(void) >> +{ >> + epoll_fd = epoll_create(1); >> + if (epoll_fd < 0) >> + ERR("Failed to create epoll fd!"); > > make it a CRIT(), so it will abort when eina is set to abort on > critical. This will make the application not wo

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Gustavo Sverzut Barbieri
On Mon, May 17, 2010 at 2:16 AM, Mike McCormack wrote: > Hey Guys, > > Here's a patch to support epoll in ecore. > > Probably needs a bit more testing, but let me know what you think. Hi Mike, code looks great. I don't agree with Vincent about having yet another file for it, but I'll suggest some

[E-devel] Small lua patch.

2010-05-17 Thread Eduardo Felipe
Hi folks! I know raster is working on rewriting lua, but still the timer API had a minor usability issue that I would like to see solved. Upon creating a timer, it's callback must return an int, otherwise it would panic. The python bindings do the nicety of, if the callback function returns nothin

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Dejun.Liu
On Mon, 2010-05-17 at 18:18 +0900, Mike McCormack wrote: > Dejun.Liu wrote: > > > > On Mon, 2010-05-17 at 14:16 +0900, Mike McCormack wrote: > >> Hey Guys, > >> > >> Here's a patch to support epoll in ecore. > >> > >> Probably needs a bit more testing, but let me know what you think. > >> > > > >

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Vincent Torri
On Mon, 17 May 2010, Mike McCormack wrote: > Vincent Torri wrote: > >> * add a file, named ecore_epoll.c instead of having lots of #ifdef > > I added 2 ifdefs vs. 11 for _WIN32. I could get it down to one if you would > insist. it's cleaner imho. The _WIN32 are necessary, unfortunately. >

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Mike McCormack
Dejun.Liu wrote: > > On Mon, 2010-05-17 at 14:16 +0900, Mike McCormack wrote: >> Hey Guys, >> >> Here's a patch to support epoll in ecore. >> >> Probably needs a bit more testing, but let me know what you think. >> > > why trigger method not be considered? sample code only uses level > trigger.

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Mike McCormack
Vincent Torri wrote: > * add a file, named ecore_epoll.c instead of having lots of #ifdef I added 2 ifdefs vs. 11 for _WIN32. I could get it down to one if you would insist. Adding a separate file would mean no inlining. > * don't add an _init() in ecore_main.c, but in the above file epoll

Re: [E-devel] [PATCH] Fix ecore's make check-local

2010-05-17 Thread Vincent Torri
On Fri, 14 May 2010, Mike McCormack wrote: > > "cd ecore && ./autogen.sh --enable-tests &&make && make check-local" was > failing. why doing make check-local and not just make check ? Vincent > Make sure to build ecore_suite before trying to run it. > > Makefile.am |2 ++ > 1 file changed

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Dejun.Liu
On Mon, 2010-05-17 at 14:16 +0900, Mike McCormack wrote: > Hey Guys, > > Here's a patch to support epoll in ecore. > > Probably needs a bit more testing, but let me know what you think. > why trigger method not be considered? sample code only uses level trigger. Steven > plain text documen

Re: [E-devel] [PATCH] epoll support for ecore

2010-05-17 Thread Vincent Torri
On Mon, 17 May 2010, Mike McCormack wrote: > Hey Guys, > > Here's a patch to support epoll in ecore. > > Probably needs a bit more testing, but let me know what you think. * add a file, named ecore_epoll.c instead of having lots of #ifdef * don't add an _init() in ecore_main.c, but in the a