Hello, everybody. I have a problem about The design about real-time data reception,treatment and save. I have a read(cBuf,length) function to receive real-time data.
I make a core exclusive thread with SetThreadAffinityMask(). In this thread, it have the read function and treatment etc. Recently I found that the thread lost frame one and then. By analyzing ,It is because too slow to read data in time.
So I want divide into two thread, one only achieve the read() function, and other things are covered by the other. However I found if add critical or lock still too slow, of course maybe my bad program is the main reason.
Now, I want get a solution about my problem. A real-time no-lock queue or something else?
Could you give me some advice or example.