summaryrefslogtreecommitdiff
path: root/ptw32_MCS_lock.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 /ptw32_MCS_lock.c
parent57936fa1e787b2a19b67d2f8eeb2892aa46e9618 (diff)
Function name change
Diffstat (limited to 'ptw32_MCS_lock.c')
-rw-r--r--ptw32_MCS_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptw32_MCS_lock.c b/ptw32_MCS_lock.c
index 1cdf723..55e4565 100644
--- a/ptw32_MCS_lock.c
+++ b/ptw32_MCS_lock.c
@@ -236,7 +236,7 @@ ptw32_mcs_lock_try_acquire (ptw32_mcs_lock_t * lock, ptw32_mcs_local_node_t * no
}
/*
- * ptw32_mcs_node_substitute -- move an MCS lock local node, usually from thread
+ * ptw32_mcs_node_transfer -- move an MCS lock local node, usually from thread
* space to, for example, global space so that another thread can release
* the lock on behalf of the current lock owner.
*
@@ -247,7 +247,7 @@ ptw32_mcs_lock_try_acquire (ptw32_mcs_lock_t * lock, ptw32_mcs_local_node_t * no
* Should only be called by the thread that has the lock.
*/
INLINE void
-ptw32_mcs_node_substitute (ptw32_mcs_local_node_t * new_node, ptw32_mcs_local_node_t * old_node)
+ptw32_mcs_node_transfer (ptw32_mcs_local_node_t * new_node, ptw32_mcs_local_node_t * old_node)
{
new_node->lock = old_node->lock;
new_node->nextFlag = 0; /* Not needed - used only in initial Acquire */