I have this c++ code (VS 2008):
LONGLONG res = InterlockedIncrement64(&m_longlong);
running along it, I would like to be able to read from the same variable
LONGLONG res = InterlockedWHAT?64(&m_longlong)
Since this is a 64-bit variable, a simple read is not considered threadsafe, yet I cannot find the correct InterlockedXXX.
How should I read this variable?