summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-13 13:06:16 +0200
committerJeremy Allison <jra@samba.org>2012-06-19 10:27:24 -0700
commitacc930293104d198364521f82980382f4b2e290f (patch)
tree9973d9431150fa5c40e657a58fa4ece7ead6b000 /source3/lib
parent8b35a4de3880e1a3f64534db9748d5786a2ccb01 (diff)
downloadsamba-acc930293104d198364521f82980382f4b2e290f.tar.gz
samba-acc930293104d198364521f82980382f4b2e290f.tar.xz
samba-acc930293104d198364521f82980382f4b2e290f.zip
s3: We can depend on pthreadpool now
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/fncall.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/source3/lib/fncall.c b/source3/lib/fncall.c
index 79bf8260d93..e40fd8343dd 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