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

namespace version bump #541

Merged
merged 3 commits into from
Mar 15, 2024
Merged

namespace version bump #541

merged 3 commits into from
Mar 15, 2024

Conversation

sean-parent
Copy link
Member

@sean-parent sean-parent commented Mar 14, 2024

Bumping the inline namespace version to v2 to avoid ODR violations.
The pre_exit code remains at v1 (it must be bumped more carefully).
The portable default executor is moving to v2 - which may lead to more than one thread pool for the portable instance. Pinning the version here is more difficult.
Removed dead reset() operations in future shared_base
Documented (and assert) precondition that future::exception() is only invoked on a ready exception.
Made more of the tuple meta-facilities public to avoid detail:: namespace usage in unit tests.
Restructured unit tests to avoid sleep-wait-loops.

I'm bumping the version to avoid ODR violations. I'm leaving the pre_exit code at v1 (it would have to be bumped more carefully).
The portable default executor is getting bumped, which may lead to duplicates, which must be addressed more carefully.
Removed dead reset() operations in future shared_base
Documented (and assert) precondition that future::exception() is only invoked on a ready exception.
Made more of the tuple meta-facilities public to avoid detail:: namespace usage in unit tests.
@@ -7,6 +7,9 @@
#ifndef STLAB_CONFIG_HPP
#define STLAB_CONFIG_HPP

// Release version macro - used for inline namespace increment on each release
Copy link
Member

@fosterbrereton fosterbrereton Mar 14, 2024

Choose a reason for hiding this comment

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

Do you want to add a comment here about not bumping pre_exit, and what "more carefully" entails? I saw it in the PR description and wonder if it should last longer than this PR...

Copy link
Member Author

@sean-parent sean-parent Mar 15, 2024

Choose a reason for hiding this comment

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

The comment is in pre_exit.hpp.

@fosterbrereton
Copy link
Member

Change LGTM, with a minor nit. Thank you Sean for keeping on top of this issue!

@sean-parent sean-parent merged commit 2f4037b into main Mar 15, 2024
6 checks passed
@sean-parent sean-parent deleted the sean-parent/increment-ns-version branch March 15, 2024 00:12
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