A common use might be to control access to a data structure in memory that can not be updated atomically .
Is invalid ( and should not be read by another thread ) until the update is complete .
A common use might be to control access to a data structure in memory that can not be updated atomically and is invalid ( and should not be read by another thread ) until the update is complete .