summaryrefslogtreecommitdiff
path: root/include/apr_support.h
diff options
context:
space:
mode:
authorgstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2003-11-17 01:41:18 +0000
committergstein <gstein@13f79535-47bb-0310-9956-ffa450edef68>2003-11-17 01:41:18 +0000
commit4825d7e302a225991dec3d211c9ff42ba90b5039 (patch)
tree3a246b886518c4c5ac54eb4381929d7cd4d6659f /include/apr_support.h
parent5703b123e764ea25f6c02096bca7ad701126c22d (diff)
downloadlibapr-4825d7e302a225991dec3d211c9ff42ba90b5039.tar.gz
With the removal of apr_poll(), the apr_wait_for_io_or_timeout() function
needed to be rebuilt. Specifically, it needs a pollset, but we don't want to allocate that all the time. Thus, we need to create it once at socket or file creation time, and then reuse that pollset. NOTE: this makes the library compile, but some of the test programs may not. I have also not verified this work yet (in favor of just getting it to at least compile...) For the apr_arch_*.h files, I added a pollset member to the file and socket structures. For the various open/dup/etc functions, I added the creation of that pollset whenever a file or socket is created. (I may have missed some and will verify further) For the socket create and sendrecv function, I added the creation of the pollset. (again, may have missed some, but if everybody uses alloc_socket, then we should be okay) * support/unix/waitio.c: rebuild in terms of the pollset git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64759 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_support.h')
-rw-r--r--include/apr_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apr_support.h b/include/apr_support.h
index 50a4789e6..8b3f257f5 100644
--- a/include/apr_support.h
+++ b/include/apr_support.h
@@ -76,6 +76,8 @@ extern "C" {
/**
* Wait for IO to occur or timeout.
+ *
+ * Uses POOL for temporary allocations.
*/
apr_status_t apr_wait_for_io_or_timeout(apr_file_t *f, apr_socket_t *s,
int for_read);