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/test | |
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/test')
-rw-r--r-- | src/test/test_util.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 151ec69127..86ff747acf 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -1383,12 +1383,6 @@ test_util_threads(void) tv.tv_sec=0; tv.tv_usec=100*1000; #endif -#ifndef TOR_IS_MULTITHREADED - /* Skip this test if we aren't threading. We should be threading most - * everywhere by now. */ - if (1) - return; -#endif thread_test_mutex_ = tor_mutex_new(); thread_test_start1_ = tor_mutex_new(); thread_test_start2_ = tor_mutex_new(); |