summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-01-03 18:06:51 +0000
committerNick Mathewson <nickm@torproject.org>2005-01-03 18:06:51 +0000
commitead52e0bdcf72d03a51b6f092607591a51fcdb20 (patch)
tree0ff4213dbea20ea5337d3ee6300011b1e02d7430 /src/common
parentc173c4724973fff0fc0d878bc85db2cfc347300f (diff)
downloadtor-ead52e0bdcf72d03a51b6f092607591a51fcdb20.tar.gz
tor-ead52e0bdcf72d03a51b6f092607591a51fcdb20.zip
Possible fix for task #43: when running on a multithreaded environment (currently only windows), threads should not close opposite sides of their socketpairs, and workers should not call connection_free_all(). This may fix win32 servers.
svn:r3247
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index dafd1339a5..d9cb5669d6 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -191,5 +191,11 @@ void tor_mutex_acquire(tor_mutex_t *m);
void tor_mutex_release(tor_mutex_t *m);
void tor_mutex_free(tor_mutex_t *m);
+#ifdef MS_WINDOWS
+#define TOR_IS_MULTITHREADED 1
+#else
+#undef TOR_IS_MULTITHREADED
+#endif
+
#endif