_64 value = 13; _64 oldvalue = LockedExchange64( &value, 15 ); // old value will be 13 // value will be 15