Replies: 1 comment
-
I hope this reply is still useful. Even with a single core processor, you still should not share access to one side of the SPSC. The code can be pre-empted at any time and cause thread problems. You would need to use a class that is MPMC or protect the SPSC with a mutex. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When using lockfree spsc queue on a single-core processor with RTOS, can we push/pop objects from multiple tasks/IRQs like mpmc queue?
Since on a single-core system, there is only one task/IRQ can be activated in the RTOS context. It seems that pushing/popping from multiple tasks/IRQs does not violate the spsc requirement.
Thanks if someone can clarify this use case.
Beta Was this translation helpful? Give feedback.
All reactions