Page 1 of 1

Multiple classes in same active context

PostPosted: September 25th, 2013, 8:19 am
by lgasser
I'm working with Rhapsody 8.0.1 and RXF for Freescale MQX 4.0.

I've got some classes which are involved in a specific Job which is the main functionality of the product and has to be high priority.
An interrupt triggers the first statemachine which then executes callbacks to classes in the application layer. Such a callback fires an event to that particular registered object and triggers its statemachine.

Now how can I achieve to run all involved statemachines in the same high priority context?

Lukas

Re: Multiple classes in same active context

PostPosted: September 25th, 2013, 4:56 pm
by czoeller
Hello Lukas,

since you want a high priority treatment of the statemachines you have to make parts of the classes you want to trigger. By using parts the message queue of the HighPriority task is used with the parts. Hence the statecharts of the parts benefit from the higher priority.

Kind Regards
Christian Zöller

Re: Multiple classes in same active context

PostPosted: September 27th, 2013, 4:07 pm
by lgasser
Thank you very much, that solution did the trick!