Module: xenomai-forge
Branch: next
Commit: 3f1c60c30f5e5d92077e886386b0ca1ef8fadeeb
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=3f1c60c30f5e5d92077e886386b0ca1ef8fadeeb

Author: Kim De Mey <kim.de...@gmail.com>
Date:   Fri Oct 11 08:06:06 2013 +0200

lib/psos: allow event send to self (current task)

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>

---

 lib/psos/task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/psos/task.c b/lib/psos/task.c
index 97be100..c23a3d5 100644
--- 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-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to