diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-24 10:39:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-27 06:06:11 +0100 |
commit | c5d07df6abe657ff196266bbfbb376ca7db0968b (patch) | |
tree | 926b6cf1b9444e90aa8e17f0c09d7a8df2a3433d /source3/lib/fncall.c | |
parent | 84aa2ddd861549d6ec8d1ef15f4fd518e03f449b (diff) | |
download | samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.tar.gz samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.tar.xz samba-c5d07df6abe657ff196266bbfbb376ca7db0968b.zip |
pthreadpool: Allow multiple jobs to be received
This can avoid syscalls when multiple jobs are finished simultaneously
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/fncall.c')
-rw-r--r-- | source3/lib/fncall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c index 7f728ba015..88304d6961 100644 --- a/source3/lib/fncall.c +++ b/source3/lib/fncall.c @@ -287,7 +287,7 @@ static void fncall_handler(struct tevent_context *ev, struct tevent_fd *fde, int i, num_pending; int job_id; - if (pthreadpool_finished_job(ctx->pool, &job_id) != 0) { + if (pthreadpool_finished_jobs(ctx->pool, &job_id, 1) < 0) { return; } |