I need to implement my own main event loop in C++ which will be based on GLib library. I don t know where to begin. I studied some materials about GLib, but it doesn t help me to know, how implement event loop. Could somebody give me some advise about it or give me some source code? I basically need to implement GSource and GSourceFuncs from GLib. Event loop should be platform independent, but my application will be run on Android. I can t find how event loop is implemented in Android, could somebody explain it to me too? Thanks a lot.
Lukas