libev is a high-performance event loop/event model with lots of features.