Skip to content

static assertion failed #45

@ZwjAccount

Description

@ZwjAccount

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions