On 09/29/2015 06:04 PM, PRADHAN, MAKARAND (RC-CA) wrote: >> Are you playing with the T_LOCK bit? > > Yes. We do T_LOCK to lock the scheduler while we are in a critical section. > Is that why the scheduler does not kick in immediately after the HW int?
If the IRQ happens while some task holds the scheduler lock, the answer is yes, that is the point of it. The scheduler lock is an ugly construct inherited from the dark ages of RTOS. Xenomai being about properly emulating these for running legacy code is the only reason why this anti-feature is present. I would strongly recommend to use a mutual exclusion mechanism with a finer granularity. -- Philippe. _______________________________________________ Xenomai mailing list Xenomai@xenomai.org http://xenomai.org/mailman/listinfo/xenomai