I cannot try it right now, but perhaps this works? : void dgRefresh() { auto runOne = new RunOne(); Thread thread = new Thread( &runOne.run ); thread.start(); }