Added a function for getting a Thread resource from anywhere that know about the the Framscheduler