Track which thread runs the EventLoop and provide a check whether we're currently inside.
Prepare for adding more code.