ExpAeMeasureContention

UINT64 __stdcall ExpAeMeasureContention(INT64 *TestVariable){
  unsigned __int64 v1; 
  signed __int64 v2; 
  signed __int64 v3; 

  v1 = __rdtsc();
  _m_prefetchw(TestVariable);
  v2 = *TestVariable;
  do
  {
    v3 = v2;
    v2 = _InterlockedCompareExchange64(TestVariable, v2 + 1, v2);
  }
  while( v3 != v2 );
  return __rdtsc() - v1;
}

Referenced by:

ExpAeThresholdInitWorker
ExpAeThresholdInitialization