41 #ifndef _atomic_black_ops_would_be_an_awesome_name_for_a_cheezy_game_cpp
42 #define _atomic_black_ops_would_be_an_awesome_name_for_a_cheezy_game_cpp
56 #ifdef _MEZZ_THREAD_WIN32_
57 return InterlockedCompareExchange((
long*)VariableToChange,NewValue,OldValue);
59 return __sync_val_compare_and_swap(VariableToChange,OldValue,NewValue);
77 #ifdef _MEZZ_THREAD_WIN32_
78 return InterlockedExchangeAdd((
long*)VariableToChange, Value);
80 return __sync_add_and_fetch(VariableToChange,Value);