Thread signal from isr


I want to know is it possible to use signal inside ISR ? I have checked handbook of MBED but things are not mentioned. Because I faced problems when using printf inside ISR (because of mutex lock).

Is it possible to signal (Flag) to thread from ISR ??

Thanks in advance.

Yes! You can set and get (so long as you use a 0 timeout) EventFlags from inside ISRs (see here in the RTOS docs). Semaphores and thread flags also work this way, though not mutexes sadly.

1 Like