If the baud rate is set to 500K and the following piece of code is executed:
int i = 0;
if(i == 0)
Then, given that GetSickScan is just called once, the application should not waste CPU at all, because the while loop is sleeping. However, using the "top" command line tool (showing threads), it can be seen that a thread is created and it actually is spending 18% CPU constantly. How can that be fixed? I have tried to profile the code and the most deep I can get is that the problem in the SickLMSBufferMonitor::GetNextMessageFromDataStream.
Log in to post a comment.