Ring buffer implementation ported from OSCL#29
Ring buffer implementation ported from OSCL#29mnmoron wants to merge 4 commits intojohnttaylor:masterfrom
Conversation
|
@johnttaylor The "Run Windows build script" CI has been "executing" for 22 hours now. |
|
@mnmoron the build machine is not in the running state. Not sure why Github has not figured out the build failed :(. That said - you need to add unit test for new Ring buffer (in the |
| released and are ready to be recognized as such by | ||
| the transmitting end of the ring. | ||
| */ | ||
| void commitAll() noexcept; |
There was a problem hiding this comment.
Why does RxDesc have commitAll() and TxDesc does not?
There was a problem hiding this comment.
This was driven by a need in a particular situation where the receiver (a framer) needed to read a number of items ahead before deciding to commit() or rewind ( resetAllocationOffset() ).
This operation is an optimization making use of the RxDesc internal knowledge rather than calling commit() n-times in a loop.
There has not been any particular situation where a similar mechanism was needed by a TxDesc client.
Will that work if I move the |
|
@mnmoron Solved the mystery on why the build does not work... Not sure how to fix this. That is problem for later this week. |
Add a ring buffer implementation that was simplified-modified-and ported from OSCL.