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

static assertion failed #45

Open
ZwjAccount opened this issue Nov 20, 2023 · 2 comments
Open

static assertion failed #45

ZwjAccount opened this issue Nov 20, 2023 · 2 comments

Comments

@ZwjAccount
Copy link

I created a queue of global variables, but an error occurred during compilation.
Slot must be aligned to cache line boundary to prevent false sharing.
141 | alignof(Slot) == hardwareInterferenceSize,
The way to create a queue is as follows: MPMCQueue<HqOpsStoreMessage> snap_mpmc_queue(MPMCBUF_SIZE);
How to solve this problem?

@brmarkus
Copy link

Can you share more of your code - a small reproducable section of code, please?

@ZwjAccount
Copy link
Author

ZwjAccount commented Nov 20, 2023 via email

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