summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-13 22:32:25 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-13 22:32:25 +0000
commitaac97a3c6a6971bebabbfe8f2779cda99438194c (patch)
treee72aa5777fd6b8725aeb374b0e2edd44b3e30ac1 /src/common/compat.h
parent427e246a10a6dbfa153adb6f5edf284e09f05c82 (diff)
downloadtor-aac97a3c6a6971bebabbfe8f2779cda99438194c.tar.gz
tor-aac97a3c6a6971bebabbfe8f2779cda99438194c.zip
Tell openssl how to use locks and how to find thread ids -- this may prevent race conditions surrounding the error queue.
svn:r3622
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index d1b5c80aed..8efc63e9d6 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -199,6 +199,7 @@ tor_mutex_t *tor_mutex_new(void);
void tor_mutex_acquire(tor_mutex_t *m);
void tor_mutex_release(tor_mutex_t *m);
void tor_mutex_free(tor_mutex_t *m);
+unsigned long tor_get_thread_id(void);
#if defined(MS_WINDOWS)
#define USE_WIN32_THREADS