Support 0 as value for the tid parameter in ev_send.
This then sends the event to the current task.

Signed-off-by: Kim De Mey <kim.de...@gmail.com>

---
Hello,

I believe this is existing functionality in Xenomai.
Would it be possible to add this in Xenomai-forge?

Kim

diff --git a/lib/psos/task.c b/lib/psos/task.c
--- a/lib/psos/task.c
+++ b/lib/psos/task.c
@@ -672,7 +672,7 @@ u_long ev_send(u_long tid, u_long events
        struct service svc;
        int ret = SUCCESS;
 
-       task = find_psos_task(tid, &ret);
+       task = find_psos_task_or_self(tid, &ret);
        if (task == NULL)
                return ret;
 

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to