aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_pthreads.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-25 11:41:40 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-14 11:05:56 -0500
commit3868b5d210f8bccbfb88464f62089447cb3330ed (patch)
tree875204c3978e3f2ebd5a3522d1e6abb87b33951d /src/common/compat_pthreads.c
parent93ad89e9d219d6cea764652a05c236210c7de3fa (diff)
downloadtor-3868b5d210f8bccbfb88464f62089447cb3330ed.tar.gz
tor-3868b5d210f8bccbfb88464f62089447cb3330ed.zip
Rename mutex_for_cond -> mutex_nonreentrant
We'll want to use these for other stuff too.
Diffstat (limited to 'src/common/compat_pthreads.c')
-rw-r--r--src/common/compat_pthreads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c
index a2e406521f..8d3c60917a 100644
--- a/src/common/compat_pthreads.c
+++ b/src/common/compat_pthreads.c
@@ -97,10 +97,10 @@ tor_mutex_init(tor_mutex_t *mutex)
}
}
-/** As tor_mutex_init, but initialize a mutex suitable for use with a
- * condition variable. */
+/** As tor_mutex_init, but initialize a mutex suitable that may be
+ * non-reentrant, if the OS supports that. */
void
-tor_mutex_init_for_cond(tor_mutex_t *mutex)
+tor_mutex_init_nonreentrant(tor_mutex_t *mutex)
{
int err;
if (PREDICT_UNLIKELY(!threads_initialized))