mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Rename mutex_for_cond -> mutex_nonreentrant
We'll want to use these for other stuff too.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user