I have a global variable that in most time can't be changed by other thread, but in single point it can.
I want to force the compiler to refresh the registers that holding this global content after that point, but without defining this global to be volatile all the time because it time consuming.
You can call some dummy function from other file after this point, that will force the compiler to refresh the global because he can't know if the global changed in the dummy function. It is bit not nice code but it will work.