Hi all, I'm trying to implement new event loop for MPD without GLib (or any other library). It's borrowed from existing epoll-based event loop. I only abstracted API differences behind general inteface (PollGroup class). Currently there are 3 backends: poll(), epoll() and Windows variant of select(). Code is poorly tested and has no comments at the moment, consider this a prototype.
Here is a full commit: http://git.musicpd.org/cgit/dk/mpd.git/commit/?id=4bcea6ea56fcb4d118d47fea5fa6106ab5883b1d How do you like this apporach? Are there any clear issues with this implementation? I'm currently concerned about (possible) thread-safety problems. What Loop methods are expected to be called from other threads? Any comments are appreciated. -- Denis ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team