Waking up a thread from a fast irq?
Posted: Mon Mar 25, 2013 5:11 am
Hi,
I am using a "fast irq" for comm and inserting data into a lock-free queue as it comes in. So far so good...
I would like to signal a sleeping thread that there is data available, from inside the "fast irq". I know of two ways: (1) having the thread busy-waiting checking on the queue, or (2) trigger a regular EXTI irq from the "fast irq" and have the handler wake up the thread. Is there another way?
~T
I am using a "fast irq" for comm and inserting data into a lock-free queue as it comes in. So far so good...
I would like to signal a sleeping thread that there is data available, from inside the "fast irq". I know of two ways: (1) having the thread busy-waiting checking on the queue, or (2) trigger a regular EXTI irq from the "fast irq" and have the handler wake up the thread. Is there another way?
~T