Use thread to handle libev event loop.