Dear all,

I am running several boarder line threads that are running in primary mode
only when accessing some shared memory, otherwise I want them to run in
secondary mode. I have used rt_task_set_mode to warn me upon switches to
secondary modes, however, my question is, is there a similar way to detect
mode switches to primary mode ?

I have figured out a workaround using pthread_set_mode_np to force the
thread to run in secondary mode (after shared memory access) and right
before I force it back to primary mode do a printf and see whether I get a
warning of switching into secondary mode (if so, then I know that the thread
was running in primary mode, if not, then the thread was running in
secondary mode.)

Again, my question is, is there an elegant way to detect mode switches from
secondary mode to primary mode ?

THANKS,
 peter
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to