Rename mutex_for_cond -> mutex_nonreentrant

We'll want to use these for other stuff too.
This commit is contained in:
Nick Mathewson
2013-09-25 11:41:40 -04:00
parent 93ad89e9d2
commit 3868b5d210
4 changed files with 18 additions and 5 deletions
+9
View File
@@ -30,6 +30,15 @@ tor_mutex_new(void)
tor_mutex_init(m);
return m;
}
/** Return a newly allocated, ready-for-use mutex. This one might be
* non-reentrant, if that's faster. */
tor_mutex_t *
tor_mutex_new_nonreentrant(void)
{
tor_mutex_t *m = tor_malloc_zero(sizeof(tor_mutex_t));
tor_mutex_init_nonreentrant(m);
return m;
}
/** Release all storage and system resources held by <b>m</b>. */
void
tor_mutex_free(tor_mutex_t *m)