diff options
author | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-04 04:43:23 +0000 |
---|---|---|
committer | brianp <brianp@13f79535-47bb-0310-9956-ffa450edef68> | 2002-08-04 04:43:23 +0000 |
commit | 90dd89abacff96dc14f6ef281298b20952625471 (patch) | |
tree | bf088a016dcc5f06d8d4220fb671af5ed3535304 /poll | |
parent | 0f5c32682bbb29abf064b5d988e8dd54c1c0b468 (diff) | |
download | libapr-90dd89abacff96dc14f6ef281298b20952625471.tar.gz |
One more update to the pollset API before we start using it
in the httpd: add a "flags" argument to apr_pollset_create().
When we add support for OS-specific poll alternatives in the
future, I anticipate that we'll need to give apps a way to
pass hints to the pollset create function to help it pick
the best mechanism for a specific pollset. (E.g., there may
be situations where we'll want to use poll(2) even if the OS
has /dev/poll.) This "flags" argument is a placeholder to
make it possible to add such hints later.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/poll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c index 6e2e7b0cf..ff4a59216 100644 --- a/poll/unix/poll.c +++ b/poll/unix/poll.c @@ -323,7 +323,8 @@ struct apr_pollset_t { APR_DECLARE(apr_status_t) apr_pollset_create(apr_pollset_t **pollset, apr_uint32_t size, - apr_pool_t *p) + apr_pool_t *p, + apr_uint32_t flags) { #if !defined(HAVE_POLL) && defined(FD_SETSIZE) if (size > FD_SETSIZE) { |