No need to write to the pipe from eventloop thread itself. Also, yield in eintrwrap.