]> git.ipfire.org Git - thirdparty/tor.git/commit
Update workqueue implementation to use a single queue for the work
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Jan 2015 18:29:58 +0000 (13:29 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Jan 2015 16:05:22 +0000 (11:05 -0500)
commita52e549124adb09ad0b49b7d2b5b3fb79bfe7aeb
treef3a05f531148dc00fc68be10d12c9ebffefb035d
parent051ad788e0ebcd0c99c1498e7e45faa71c4830c1
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.
src/common/compat_pthreads.c
src/common/workqueue.c
src/common/workqueue.h
src/or/cpuworker.c
src/test/test_workqueue.c