Altering safely data in an high priority audio thread

Which is the best approach to alter data in an high priority audio thread, I want to edit the tempo of an AudioPlayHead that is updated with an audiocallback.

Thanks in advance.

Your question doesn't make much sense...? Maybe try explaining what you're actually trying to do..