Hello, On Mon, Nov 4, 2013 at 11:00 PM, Tom Hacohen <[email protected]> wrote: > As you may have noticed, Cedric committed Ecore Coroutine a while back. > I don't know why we need our coroutine implementation, and I don't think > anyone uses or will ever use it. Those aside, the current coroutine > implementation only works on Linux and relies on very hackish > implementation details (which means it won't work on old glibc versions > and possibly new glibc versions as well). I don't understand why we let > that in, and I think it should be removed from Ecore asap, especially > before the release.
Care to provide a link about it being broken on older and newer glibc ? It is still part of POSIX, just marked deprecated. As for usefulness it make it possible to reschedule a piece of code as you receive packet in without the need to use callback. Some library that have a really bad design and we can't find alternative do need this kind of infra if you want to run them in sync with our main loop. > An example of already existing pain regarding it: > https://phab.enlightenment.org/T456 This is a problem in configure.ac not in the code. MacOS X has ucontext, for an unknow reason configure doesn't detect it. > I don't see why we need to make our lives harder (porting) with > including something so hacky that is not even that useful to us. Removing it is still an option. You will have noticed that the code is ported to windows and unix, with even a fallback for system that don't fall into those two categorie... So the problem is not portability of the code, but to have configure.ac detect things correctly. -- Cedric BAIL ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
