cancel
Showing results for 
Search instead for 
Did you mean: 

Hello every one I cant understand the interrupt re entrancy and thread safe please give me some source or book or suggestion to deal with this problem.

Ashkan Rashvand
Associate
Posted on April 29, 2018 at 01:09

I need some knowledgement or source about this 2 topic.

1 REPLY 1
T J
Lead
Posted on April 29, 2018 at 02:35

The best way to be thread safe, in my case.

I like to exit an interrupt in under 3uSeconds.  <- this is the main issue.

That way, there is never any latency.

In the interrupt, I have a results buffer Table. with incoming and outgoing pointers.

The result(s) is/are saved and the incoming pointer incremented/wrapped in circular buffer.

In the interrupt, if the Table is already full then is sets an overflow error flag.

In the foreground or controlling process, the Outgoing pointers are used to read the results in consecutive order.

if the overflow flag is set, the foreground process, must manage/report the issue.