[sr-dev] git:master:f8909163: core: add infrastructure to run functions in threads