summaryrefslogtreecommitdiff
path: root/src/common/compat_pthreads.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-14 13:29:58 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-15 11:05:22 -0500
commita52e549124adb09ad0b49b7d2b5b3fb79bfe7aeb (patch)
treef3a05f531148dc00fc68be10d12c9ebffefb035d /src/common/compat_pthreads.c
parent051ad788e0ebcd0c99c1498e7e45faa71c4830c1 (diff)
downloadtor-a52e549124adb09ad0b49b7d2b5b3fb79bfe7aeb.tar.gz
tor-a52e549124adb09ad0b49b7d2b5b3fb79bfe7aeb.zip
Update workqueue implementation to use a single queue for the work
Previously I used one queue per worker; now I use one queue for everyone. The "broadcast" code is gone, replaced with an idempotent 'update' operation.
Diffstat (limited to 'src/common/compat_pthreads.c')
-rw-r--r--src/common/compat_pthreads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c
index 848bfe0973..f43480539f 100644
--- a/src/common/compat_pthreads.c
+++ b/src/common/compat_pthreads.c
@@ -5,6 +5,7 @@
#include "orconfig.h"
#include <pthread.h>
+#include <signal.h>
#include "compat.h"
#include "torlog.h"