summaryrefslogtreecommitdiff
path: root/pthread_barrier_wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_barrier_wait.c')
-rw-r--r--pthread_barrier_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_barrier_wait.c b/pthread_barrier_wait.c
index 200a02d..37c243b 100644
--- a/pthread_barrier_wait.c
+++ b/pthread_barrier_wait.c
@@ -86,7 +86,7 @@ pthread_barrier_wait (pthread_barrier_t * barrier)
if (0 == result)
{
result = ((PTW32_INTERLOCKED_LONG) step ==
- ptw32_interlocked_compare_exchange ((PTW32_INTERLOCKED_LPLONG)
+ PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG)
& (b->iStep),
(PTW32_INTERLOCKED_LONG)
(1L - step),