diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-12 18:10:48 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2010-04-12 18:10:48 +0000 |
commit | 0c49e93bb6732c7eab1b784f1c6a763489b97420 (patch) | |
tree | aa98974e81186474ae15001a84d779c601e12e4a /include/apr_file_io.h | |
parent | f62e294edffca17799220c9f586262cb63e71987 (diff) | |
download | libapr-0c49e93bb6732c7eab1b784f1c6a763489b97420.tar.gz |
Hide apr_wait_for_io_or_timeout() from public view and add instead
apr_socket_wait() and apr_file_pipe_wait().
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@933338 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_file_io.h')
-rw-r--r-- | include/apr_file_io.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/apr_file_io.h b/include/apr_file_io.h index 3740401a7..7cdb9bc26 100644 --- a/include/apr_file_io.h +++ b/include/apr_file_io.h @@ -569,6 +569,16 @@ APR_DECLARE(apr_status_t) apr_file_gets(char *str, int len, APR_DECLARE(apr_status_t) apr_file_puts(const char *str, apr_file_t *thefile); /** + * Wait for a pipe to be ready for input or output + * @param thepipe the pipe to wait on + * @param direction whether to wait for reading or writing to be ready + * Can be either APR_WAIT_READ or APR_WAIT_WRITE + * @remark Will time out if thepipe has a time out set for it + */ +APR_DECLARE(apr_status_t) apr_file_pipe_wait(apr_file_t *thepipe, + apr_wait_type_t direction); + +/** * Flush the file's buffer. * @param thefile The file descriptor to flush */ |