From 711c18c2301d1bea35cac1144080a94e6b89be27 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 21 Dec 2011 20:38:32 -0800 Subject: Change the signature of pthreadpool_finished_job() to return 0 on success, errno on fail and return the jobid in a separate variable. I need this fix for my vfs_aio_pthread.c module. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Dec 22 12:12:33 CET 2011 on sn-devel-104 --- source3/lib/pthreadpool/pthreadpool.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib/pthreadpool/pthreadpool.h') diff --git a/source3/lib/pthreadpool/pthreadpool.h b/source3/lib/pthreadpool/pthreadpool.h index 79704ea385..0fde3c811b 100644 --- a/source3/lib/pthreadpool/pthreadpool.h +++ b/source3/lib/pthreadpool/pthreadpool.h @@ -90,8 +90,9 @@ int pthreadpool_signal_fd(struct pthreadpool *pool); * pthreadpool_signal_fd() is readable. * * @param[in] pool The pool to query for finished jobs - * @return The job_id of the finished job + * @param[out] pjobid The job_id of the finished job + * @return success: 0, failure: errno */ -int pthreadpool_finished_job(struct pthreadpool *pool); +int pthreadpool_finished_job(struct pthreadpool *pool, int *jobid); #endif -- cgit