Jan Kiszka wrote:
Hi,
it turned out that it is useful to abstract the priority
increment/decrement by one level at the RTDM layer - for systems that
use a different scheme compared to POSIX or Xenomai (so far only classic
RTAI). Please apply.
Applied, thanks.
Jan
------------------------------------------------------------------------
Index: skins/rtdm/rtdm_driver.h
===================================================================
--- skins/rtdm/rtdm_driver.h (Revision 72)
+++ skins/rtdm/rtdm_driver.h (Arbeitskopie)
@@ -831,8 +831,16 @@
#define RTDM_TASK_HIGHEST_PRIORITY XNCORE_HIGH_PRIO
/** @} */
+/*!
+ * @anchor changetaskprio @name Task Priority Modification
+ * Raise or lower task priorities by one level
+ * @{ */
+#define RTDM_TASK_RAISE_PRIORITY (+1)
+#define RTDM_TASK_LOWER_PRIORITY (-1)
/** @} */
+/** @} */
+
static inline int rtdm_task_init(rtdm_task_t *task, const char *name,
rtdm_task_proc_t task_proc, void *arg,
int priority, __u64 period)
------------------------------------------------------------------------
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core
--
Philippe.