An example showing how to use multiple event loops in libuv. The loops run in two different threads, and the example also shows how threads can communicate.
Also included is a CMakeLists.txt file, in case you want to use CMake. Remember to adjust paths to libuv.