diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-06-20 10:20:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-06-20 10:20:10 -0400 |
commit | 58f4200789d0cc47ebd88f3091207cf4dd493573 (patch) | |
tree | 701c9af5a50468abeae0ae65bb32dad4acf54c83 /src/common/compat.c | |
parent | 5b4ee475aa00bb30675e819a0096209e5e427668 (diff) | |
download | tor-58f4200789d0cc47ebd88f3091207cf4dd493573.tar.gz tor-58f4200789d0cc47ebd88f3091207cf4dd493573.zip |
Thread support is now required
Long ago we supported systems where there was no support for
threads, or where the threading library was broken. We shouldn't
have do that any more: on every OS that matters, threads exist, and
the OS supports running threads across multiple CPUs.
This resolves tickets 9495 and 12439. It's a prerequisite to making
our workqueue code work better, since sensible workqueue
implementations don't split across multiple processes.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 6fb9c210e7..1760684cf7 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -2722,7 +2722,7 @@ tor_gettimeofday(struct timeval *timeval) return; } -#if defined(TOR_IS_MULTITHREADED) && !defined(_WIN32) +#if !defined(_WIN32) /** Defined iff we need to add locks when defining fake versions of reentrant * versions of time-related functions. */ #define TIME_FNS_NEED_LOCKS @@ -2982,7 +2982,6 @@ tor_get_thread_id(void) } #endif -#ifdef TOR_IS_MULTITHREADED /** Return a newly allocated, ready-for-use mutex. */ tor_mutex_t * tor_mutex_new(void) @@ -3000,7 +2999,6 @@ tor_mutex_free(tor_mutex_t *m) tor_mutex_uninit(m); tor_free(m); } -#endif /* Conditions. */ #ifdef USE_PTHREADS |