You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my use case I use the mpmc queue on an STM32 where I write data from SPI to TCP. SPI is received by using DMA and the completion interrupt. MPMC is needed because there are some pushes from non interrupt routines. In the ring buffer there is the Peek() method.
TCP might fail if there is not enough space in the transmission buffer bit I don't know that before I consume the data from the buffer. At the moment the data is lost but in the future I would like to implement a peek method. Are there any plans at the moment to implement that?
The text was updated successfully, but these errors were encountered:
Good question! Personally, I am not aware of any way to do peeks, because it's not possible to guarantee that no reads will happen on different threads while peeking, messing with the monotonic counter. Perhaps if we can get the monotonic counter at the moment from Peek() and feed it to Skip() later, this could work.
I unfortunately don't have the time to implement this at the moment even if its possible, but any contributions are welcome!
In my use case I use the mpmc queue on an STM32 where I write data from SPI to TCP. SPI is received by using DMA and the completion interrupt. MPMC is needed because there are some pushes from non interrupt routines. In the ring buffer there is the Peek() method.
TCP might fail if there is not enough space in the transmission buffer bit I don't know that before I consume the data from the buffer. At the moment the data is lost but in the future I would like to implement a peek method. Are there any plans at the moment to implement that?
The text was updated successfully, but these errors were encountered: