summaryrefslogtreecommitdiff
path: root/poll/unix/port.c
diff options
context:
space:
mode:
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;