That avoids @daschuer's comment about using it on the stack. That way you can just copy m_pScaleKeylock to the stack in process() and mark that alone volatile.