Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use for multi-consumer multi-producer #17

Open
dsandber opened this issue Jun 10, 2021 · 1 comment
Open

How to use for multi-consumer multi-producer #17

dsandber opened this issue Jun 10, 2021 · 1 comment

Comments

@dsandber
Copy link

If I want a ring-buffer for the multi-producer multi-consumer case, and I protect access to the buffer with a mutex, am I correct that fake_tso should be true in the constructor and otherwise the defaults are correct?

Perhaps add this to the readme? I saw someone else asked about an exception in the MPMC case.

Thanks!

@jnk0le
Copy link
Owner

jnk0le commented Jan 19, 2022

fake_tso is optimizaation for cases where the actual hardware (or effective useage) is defacto TSO but architecturally it's still WMO. Like single core microcontrollers.

Mutex should work, of course not as effective as proper MPMC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants