From acc930293104d198364521f82980382f4b2e290f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 13 Jun 2012 13:06:16 +0200 Subject: s3: We can depend on pthreadpool now Signed-off-by: Jeremy Allison --- source3/lib/fncall.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c index 79bf8260d9..e40fd8343d 100644 --- a/source3/lib/fncall.c +++ b/source3/lib/fncall.c @@ -20,8 +20,6 @@ #include "includes.h" #include "../lib/util/tevent_unix.h" -#if WITH_PTHREADPOOL - #include "lib/pthreadpool/pthreadpool.h" struct fncall_state { @@ -323,43 +321,3 @@ int fncall_recv(struct tevent_req *req, int *perr) } return 0; } - -#else /* WITH_PTHREADPOOL */ - -struct fncall_context { - uint8_t dummy; -}; - -struct fncall_context *fncall_context_init(TALLOC_CTX *mem_ctx, - int max_threads) -{ - return talloc(mem_ctx, struct fncall_context); -} - -struct fncall_state { - uint8_t dummy; -}; - -struct tevent_req *fncall_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct fncall_context *ctx, - void (*fn)(void *private_data), - void *private_data) -{ - struct tevent_req *req; - struct fncall_state *state; - - req = tevent_req_create(mem_ctx, &state, struct fncall_state); - if (req == NULL) { - return NULL; - } - fn(private_data); - tevent_req_post(req, ev); - return req; -} - -int fncall_recv(struct tevent_req *req, int *perr) -{ - return 0; -} - -#endif -- cgit