[sr-dev] git:5.7:5132dcef: core: add infrastructure to run functions in threads