pthread with libev sample