Hi All,
Do a standard Linux process and a real-time task (spawned by the standard Linux
process with rt_task_create and rt_task_start ) share the same address space?
More specifically, I have a C++ program like this:
Class A{
//Definition of a class A
};
RT_TASK demo_task;
void demo(void *arg){
A * pA = (A *)arg;
//Access the passed object via pA, e.g., pA->a...
}
int main(){
...
A *pA = new A;
rt_task_create(&demo_task, "realtime_task", 0, 50, 0);
rt_task_start(&demo_task, &demo, (void *)pA);
pause();
}
Can the function demo() correctly access the object created in main()? What if
pA is a smart pointer defined in Boost library?
With Many Thanks,
Tom
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help