summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/util.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-03 09:18:14 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-04 13:02:55 +0100
commitffbee8a6c43141a77801b4ca40a145b3e56faf7a (patch)
treea2c2bcb398755936c8c7540d1433013aaaed14fb /rtemsbsd/include/rtems/bsd/util.h
parentmDNS: Avoid uninitialized memory (diff)
downloadrtems-libbsd-ffbee8a6c43141a77801b4ca40a145b3e56faf7a.tar.bz2
Add rtems_bsd_force_select_timeout()
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/util.h')
-rw-r--r--rtemsbsd/include/rtems/bsd/util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/util.h b/rtemsbsd/include/rtems/bsd/util.h
index a2cd1e80..86aacf3f 100644
--- a/rtemsbsd/include/rtems/bsd/util.h
+++ b/rtemsbsd/include/rtems/bsd/util.h
@@ -40,6 +40,8 @@
#include <stdint.h>
+#include <rtems.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -77,6 +79,23 @@ rtems_bsd_arp_processor_process(
rtems_bsd_arp_processor_context *ctx,
rtems_bsd_arp_processor processor, void *arg);
+/**
+ * @brief Forces a select() timeout for the specified task.
+ *
+ * In case the specified task waits in a select(), then it is woken up with a
+ * timeout status, otherwise this call has no effect.
+ *
+ * @param[in] task_id The task identifier.
+ *
+ * @retval RTEMS_SUCCESSFUL Successful operation.
+ * @retval RTEMS_INVALID_ID No such task.
+ *
+ * @warning This function may go away once the signal support for condition
+ * variables is implemented.
+ */
+rtems_status_code
+rtems_bsd_force_select_timeout(rtems_id task_id);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */