Here is code review of libevent with my comments