Event handling problem

Chris Johns chrisj at rtems.org
Mon Mar 19 11:45:27 UTC 2007


hwulf at et-inf.fho-emden.de wrote:
> 
> I've got a little problem with the RTEMS Events.
> 
> The test case:
> Task 1 sends a event to Task 2 and dies right after that.
> Now Task 2 doesn't ever get that event.
> 

What do you mean by dies ?

> Is it necessary, that Task 1 keeps a while alive, so that
> Task 2 could get that event?

No. Events can be sent by an ISR to a task and you could consider an ISR 
a high priority preemptive non-blocking short lived task.

> When I add the line "rtems_task_wake_after(1);" in the Task1
> function right after the rtems_event_send()-call, then
> Task 2 gets the event.
> 
> What is going on there?
> 

It is hard to say with out a little more information. Do you have a 
small example ?

Regards
Chris



More information about the users mailing list