Skip to content

Remove constexpr from constructor - #9

Merged
sbooth merged 2 commits into
mainfrom
ctor
Jul 10, 2026
Merged

Remove constexpr from constructor#9
sbooth merged 2 commits into
mainfrom
ctor

Conversation

@sbooth

@sbooth sbooth commented Jul 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 10, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes constexpr from mpsc::MessageQueue’s default constructor and updates its initialization logic to use explicit atomic stores, aligning construction with runtime-only atomic semantics.

Changes:

  • Remove constexpr from the MessageQueue() declaration.
  • Remove constexpr from the out-of-class constructor definition.
  • Initialize each slot’s atomic generation_ using store(..., std::memory_order_relaxed) instead of assignment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Sources/CXXMessageQueue/include/mpsc/MessageQueue.hpp Outdated
@sbooth
sbooth merged commit 2bbf374 into main Jul 10, 2026
7 checks passed
@sbooth
sbooth deleted the ctor branch July 10, 2026 14:14
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

Successfully merging this pull request may close these issues.

2 participants