summaryrefslogtreecommitdiff
path: root/src/common/compat_threads.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-23 01:15:30 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-14 10:49:59 -0500
commit65016304d23503e230e8b097b5cdc1e4897b9b57 (patch)
tree55dd1617de8d2994643a6e915bdd09a6165988d5 /src/common/compat_threads.h
parente865248156a8512d756be003118de446d29611d1 (diff)
downloadtor-65016304d23503e230e8b097b5cdc1e4897b9b57.tar.gz
tor-65016304d23503e230e8b097b5cdc1e4897b9b57.zip
Add tor_cond_init/uninit
Diffstat (limited to 'src/common/compat_threads.h')
-rw-r--r--src/common/compat_threads.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat_threads.h b/src/common/compat_threads.h
index bbd782fd45..6d3ba3ae21 100644
--- a/src/common/compat_threads.h
+++ b/src/common/compat_threads.h
@@ -74,6 +74,8 @@ typedef struct tor_cond_t {
tor_cond_t *tor_cond_new(void);
void tor_cond_free(tor_cond_t *cond);
+int tor_cond_init(tor_cond_t *cond);
+void tor_cond_uninit(tor_cond_t *cond);
int tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex,
const struct timeval *tv);
void tor_cond_signal_one(tor_cond_t *cond);