Commit 00a7f6c1 authored by Matt Larsen's avatar Matt Larsen

Correcting function call

parent 249cce35
......@@ -365,13 +365,13 @@ private:
vtkm::Int32 vtkmCompareAndSwap(vtkm::Int32 *address, const vtkm::Int32 &newValue, const vtkm::Int32 &oldValue) const
return InterlockedExchangeAdd(reinterpret_cast<volatile long *>(address),newValue,oldValue);
return InterlockedCompareExchange(reinterpret_cast<volatile long *>(address),newValue,oldValue);
vtkm::Int64 vtkmCompareAndSwap(vtkm::Int64 *address,const vtkm::Int64 &newValue, const vtkm::Int64 &oldValue) const
return InterlockedExchangeAdd64(reinterpret_cast<volatile long long *>(address),newValue, oldValue);
return InterlockedCompareExchange64(reinterpret_cast<volatile long long *>(address),newValue, oldValue);
#else //gcc built-in atomics
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment