Closed hippyau closed 4 years ago
Hi Hippy,
With my OS, a non-interrupting while loop with Run methods, then when checking for received data on UDP:
if (__builtin_expect((m_nBytesReceived < 8), 1)) {
return;
}
it is most likely that there is no datagram available. Therefore it is expected that the the m_nBytesReceived is mostly 0 or less than the smallest package we expect to receive.
This latest pull request is on master. That should not be done.
Greetings, Arjan
Hi Arjan!
So please have a look and see what you reckon. It works confirmed with my big clock and SystimeReader.
It's not awesome code, but the third approach I came up with that seems to work well.
Keen to see how you would change/fix my code.
A better way to get current ltcSource? Implement __builtin_expect((x),1) in HandleRequest
I'm a bit mentally ill, I see these in linux kernel and it's so much more readable to me with these macros....
so
likely(return==0) { return; // it would execute this, yes? }
?