
The value of global variables that can change copied before being accessed to ensure that the used value is the same for the duration of a function call. No locks are needed, because even if the copying would not be atomic, it doesn't matter since all that matters is that the used value does not change for the duration.