summaryrefslogtreecommitdiff
path: root/poll/unix/port.c
diff options
context:
space:
mode:
authorMladen Turk <mturk@apache.org>2008-04-13 08:31:03 +0000
committerMladen Turk <mturk@apache.org>2008-04-13 08:31:03 +0000
commitfc18a5fd06cc94fdf12e6136d67480e500c166fa (patch)
tree4002c9a170be10f9dd02301511de408a02d26f27 /poll/unix/port.c
parent8744772ba11042a1d24ac5d1899062d2c209bdbf (diff)
downloadapr-fc18a5fd06cc94fdf12e6136d67480e500c166fa.tar.gz
Introduce apr_pollset_wakeup()
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@647540 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll/unix/port.c')
-rw-r--r--poll/unix/port.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/poll/unix/port.c b/poll/unix/port.c
index 05848d618..2842e2781 100644
--- a/poll/unix/port.c
+++ b/poll/unix/port.c
@@ -335,6 +335,22 @@ APR_DECLARE(apr_status_t) apr_pollset_poll(apr_pollset_t *pollset,
return rv;
}
+APR_DECLARE(apr_status_t) apr_pollset_wakeup(apr_pollset_t *pollset)
+{
+#if APR_HAS_THREADS
+ if (pollset->flags & APR_POLLSET_WAKEABLE)
+ return APR_ENOTIMPL;
+ else
+ return APR_EINIT;
+#else
+ /* In case APR was compiled without thread support
+ * makes no sense to have wakeup operation usable
+ * only in multithreading environment.
+ */
+ return APR_ENOTIMPL;
+#endif
+}
+
struct apr_pollcb_t {
apr_pool_t *pool;
apr_uint32_t nalloc;