Events are now enqueued using a thread safe concurrent queue which makes the previous eventloop locking redundant.