[or-cvs] Possible fix for task #43: when running on a multithreaded ...
Nick Mathewson
nickm at seul.org
Mon Jan 3 18:06:53 UTC 2005
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv21346/src/common
Modified Files:
compat.h
Log Message:
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.
Index: compat.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- compat.h 22 Dec 2004 05:28:15 -0000 1.15
+++ compat.h 3 Jan 2005 18:06:50 -0000 1.16
@@ -191,5 +191,11 @@
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
More information about the tor-commits
mailing list