There is a variable(e.g. int temp;) in the multi-thread environment. Some threads write to it, with write-lock protected. while others read the variable, but without any lock.
My question is: If the variable is writed to be one of element in a SET(e.g. {1, 2, 3}), by some threads repeatedly. Is it always one of that SET, when I read it.