aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_threads.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-27 12:32:19 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-14 11:12:40 -0500
commite47a90a976f883571bea6e58620aa13f058873e3 (patch)
treede86a0e575b7b2b53b127548ca4ab990e2cc476a /src/common/compat_threads.c
parentd69717f61bd9ab4e0a6097f0201bd02fc96f88eb (diff)
downloadtor-e47a90a976f883571bea6e58620aa13f058873e3.tar.gz
tor-e47a90a976f883571bea6e58620aa13f058873e3.zip
"Recursive" locks, not "reentrant" locks. Duh.
Diffstat (limited to 'src/common/compat_threads.c')
-rw-r--r--src/common/compat_threads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat_threads.c b/src/common/compat_threads.c
index ba48eb4d1f..f018475e18 100644
--- a/src/common/compat_threads.c
+++ b/src/common/compat_threads.c
@@ -33,12 +33,12 @@ tor_mutex_new(void)
return m;
}
/** Return a newly allocated, ready-for-use mutex. This one might be
- * non-reentrant, if that's faster. */
+ * non-recursive, if that's faster. */
tor_mutex_t *
-tor_mutex_new_nonreentrant(void)
+tor_mutex_new_nonrecursive(void)
{
tor_mutex_t *m = tor_malloc_zero(sizeof(tor_mutex_t));
- tor_mutex_init_nonreentrant(m);
+ tor_mutex_init_nonrecursive(m);
return m;
}
/** Release all storage and system resources held by <b>m</b>. */