1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/lib/pthreadpool
Ralph Boehme 3b16bfe483 pthreadpool: create a tevent_threaded_context per registered event context
We just need one tevent_threaded_context per unique combintation of
tevent event contexts and pthreadpool_tevent pools, not multiple copies
for identical combinations of a tevent contexts and a pthreadpool_tevent
pools.

With this commit we register tevent contexts in a list in the
pthreadpool_tevent structure and will only have one
tevent_threaded_context object per tevent context per pool.

With many pthreadpool_tevent_job_send reqs this pays off, I've seen a
small decrease in cpu-ticks with valgrind callgrind and a modified
local.messaging.ping-speed torture test. The test modification ensured
messages we never directly send, but always submitted via
pthreadpool_tevent_job_send.

Pair-Programmed-With: Jeremy Allison <jra@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Nov 17 02:35:52 CET 2017 on sn-devel-144
2017-11-17 02:35:52 +01:00
..
Makefile Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_pipe.c Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_pipe.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_sync.c Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool_tevent.c pthreadpool: create a tevent_threaded_context per registered event context 2017-11-17 02:35:52 +01:00
pthreadpool_tevent.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
pthreadpool.c pthreadpool: Fix fork behaviour 2017-08-31 17:44:22 +02:00
pthreadpool.h Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00
tests.c lib: Fix 1417431 Unchecked return value from library 2017-09-05 19:13:12 +02:00
wscript_build Move pthreadpool to top of the tree. 2017-02-09 20:04:12 +01:00