Beginning refactoring of the event_callback outside of the core

Unlearned get/setMainThread functions since they were unused.

(0) -10 -2 +2 +10 +30 tip

mercurial