Move the function to the `private:` part of the class and remove the "dangerous" warning, it is perfectly safe to use it from the Tick thread, which is the only place that uses it now.