summaryrefslogtreecommitdiff
path: root/include/apr_poll.h
diff options
context:
space:
mode:
authorbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-08-04 04:43:23 +0000
committerbrianp <brianp@13f79535-47bb-0310-9956-ffa450edef68>2002-08-04 04:43:23 +0000
commit90dd89abacff96dc14f6ef281298b20952625471 (patch)
treebf088a016dcc5f06d8d4220fb671af5ed3535304 /include/apr_poll.h
parent0f5c32682bbb29abf064b5d988e8dd54c1c0b468 (diff)
downloadlibapr-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 'include/apr_poll.h')
-rw-r--r--include/apr_poll.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/apr_poll.h b/include/apr_poll.h
index 5ddde025b..672ede10b 100644
--- a/include/apr_poll.h
+++ b/include/apr_poll.h
@@ -231,10 +231,13 @@ typedef struct apr_pollset_t apr_pollset_t;
* @param pollset The pointer in which to return the newly created object
* @param size The maximum number of descriptors that this pollset can hold
* @param p The pool from which to allocate the pollset
+ * @param flags Optional flags to modify the operation of the pollset
+ * (reserved for future expansion)
*/
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);
/**
* Destroy a pollset object