Skip to contentSkip to conversation

Xenomai-forge pSOS task: Allow event send to self (current task)

PATCH Applied Kim De Mey 2 participants 2 messages Oct 11, 2013 – Oct 13, 2013

lore
Share & tools
lore

Kim De Mey

author
#0 lore raw

PATCH 1/1 Xenomai-forge pSOS task: 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.

---
Hello,

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

Kim

lib/psos/task.c +1 -1
@@ -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;
 
#1 lore raw
Quoted 11 lines · Kim De Mey

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

---
Hello,

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

Merged, thanks.

Signature · 1 line
Philippe.