diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-03 16:34:07 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-28 16:40:19 +0100 |
commit | ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0 (patch) | |
tree | 9e7b420f0fd4dd5a1a6504a78f4705805c150406 /source3/include | |
parent | be33e2e0a7b18c6d659d976afc507407904a69ed (diff) | |
download | samba-ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0.tar.gz samba-ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0.tar.bz2 samba-ea5e1c5ecb7ab897a684bda88a49bb26fb557eb0.zip |
s3: Use poll for the event loop
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/event.h b/source3/include/event.h index dc45b76896..c6689d9e91 100644 --- a/source3/include/event.h +++ b/source3/include/event.h @@ -36,3 +36,8 @@ struct timeval *get_timed_events_timeout(struct event_context *event_ctx, void dump_event_list(struct event_context *event_ctx); struct tevent_context *s3_tevent_context_init(TALLOC_CTX *mem_ctx); +bool event_add_to_poll_args(struct tevent_context *ev, TALLOC_CTX *mem_ctx, + struct pollfd **pfds, int *num_pfds, + int *ptimeout); +bool run_events_poll(struct tevent_context *ev, int pollrtn, + struct pollfd *pfds, int num_pfds); |