summaryrefslogtreecommitdiff
path: root/pthread_barrier_wait.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-04 13:22:03 +0000
committerrpj <rpj>2011-03-04 13:22:03 +0000
commit275d03d3af64e4f5e1769584214f6fccc303456e (patch)
treece692f6c294bf416869fab3104399afe4baf337f /pthread_barrier_wait.c
parent57936fa1e787b2a19b67d2f8eeb2892aa46e9618 (diff)
Function name change
Diffstat (limited to 'pthread_barrier_wait.c')
-rw-r--r--pthread_barrier_wait.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pthread_barrier_wait.c b/pthread_barrier_wait.c
index d60ba60..b0b4481 100644
--- a/pthread_barrier_wait.c
+++ b/pthread_barrier_wait.c
@@ -61,7 +61,7 @@ pthread_barrier_wait (pthread_barrier_t * barrier)
* Move our MCS local node to the global scope barrier handle so that the
* last thread out (not necessarily us) can release the lock.
*/
- ptw32_mcs_node_substitute(&b->proxynode, &node);
+ ptw32_mcs_node_transfer(&b->proxynode, &node);
/*
* Any threads that have not quite entered sem_wait below when the
@@ -90,12 +90,12 @@ pthread_barrier_wait (pthread_barrier_t * barrier)
if ((PTW32_INTERLOCKED_LONG)PTW32_INTERLOCKED_INCREMENT((LPLONG)&b->nCurrentBarrierHeight)
== (PTW32_INTERLOCKED_LONG)b->nInitialBarrierHeight)
{
- /*
+ /*
* We are the last thread to cross this barrier
- */
+ */
ptw32_mcs_lock_release(&b->proxynode);
- if (0 == result)
- {
+ if (0 == result)
+ {
result = PTHREAD_BARRIER_SERIAL_THREAD;
}
}