s4/heimdal/lib/krb5/pac.c: Align PAC buffers to match Windows
[Samba.git] / lib / pthreadpool / pthreadpool_pipe.h
blob77516f7d669b70b5da79a85ee22f6993ddd858bb
1 /*
2 * Unix SMB/CIFS implementation.
3 * threadpool implementation based on pthreads
4 * Copyright (C) Volker Lendecke 2009,2011
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __PTHREADPOOL_PIPE_H__
21 #define __PTHREADPOOL_PIPE_H__
23 struct pthreadpool_pipe;
25 int pthreadpool_pipe_init(unsigned max_threads,
26 struct pthreadpool_pipe **presult);
28 int pthreadpool_pipe_destroy(struct pthreadpool_pipe *pool);
30 int pthreadpool_pipe_add_job(struct pthreadpool_pipe *pool, int job_id,
31 void (*fn)(void *private_data),
32 void *private_data);
34 int pthreadpool_pipe_signal_fd(struct pthreadpool_pipe *pool);
36 int pthreadpool_pipe_finished_jobs(struct pthreadpool_pipe *pool, int *jobids,
37 unsigned num_jobids);
39 #endif