Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sudhanshu Sane
VTK-m
Commits
00a7f6c1
Commit
00a7f6c1
authored
Mar 08, 2016
by
Matt Larsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correcting function call
parent
249cce35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h
vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h
+2
-2
No files found.
vtkm/cont/tbb/internal/DeviceAdapterAlgorithmTBB.h
View file @
00a7f6c1
...
...
@@ -365,13 +365,13 @@ private:
VTKM_EXEC_EXPORT
vtkm
::
Int32
vtkmCompareAndSwap
(
vtkm
::
Int32
*
address
,
const
vtkm
::
Int32
&
newValue
,
const
vtkm
::
Int32
&
oldValue
)
const
{
return
InterlockedExchange
Add
(
reinterpret_cast
<
volatile
long
*>
(
address
),
newValue
,
oldValue
);
return
Interlocked
Compare
Exchange
(
reinterpret_cast
<
volatile
long
*>
(
address
),
newValue
,
oldValue
);
}
VTKM_EXEC_EXPORT
vtkm
::
Int64
vtkmCompareAndSwap
(
vtkm
::
Int64
*
address
,
const
vtkm
::
Int64
&
newValue
,
const
vtkm
::
Int64
&
oldValue
)
const
{
return
InterlockedExchange
Add
64
(
reinterpret_cast
<
volatile
long
long
*>
(
address
),
newValue
,
oldValue
);
return
Interlocked
Compare
Exchange64
(
reinterpret_cast
<
volatile
long
long
*>
(
address
),
newValue
,
oldValue
);
}
#else //gcc built-in atomics
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment