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

Adding a is_always_lock_free function rather than just failing the compilation #33

Open
Lomadriel opened this issue Jan 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Lomadriel
Copy link
Member

static_assert(std::atomic<std::size_t>::is_always_lock_free, "Atomic implementation is not lock free");
static_assert(std::atomic<node_union>::is_always_lock_free, "Atomic implementation is not lock free");

These two lines makes the compilation crash, maybe it is better to add a bool is_always_lock_free() function since the map still works with lock.

@Lomadriel Lomadriel added the enhancement New feature or request label Jan 9, 2019
@CBenoit CBenoit removed their assignment Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants