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

Support stop tokens #221

Open
s13n opened this issue Jun 11, 2024 · 1 comment
Open

Support stop tokens #221

s13n opened this issue Jun 11, 2024 · 1 comment

Comments

@s13n
Copy link

s13n commented Jun 11, 2024

Since C++20 with std:jthread, there is support for stop tokens in condition variables. It would be nice if the interprocess condition variables would support them, too!

@igaztanaga
Copy link
Member

Sadly Interprocess condition variables are optimimally wrappers around OS primitives (like POSIX condition variables), so stop_token support can't be added (e..g std::condition_variable does not support it). But maybe we can analyze if boost::interprocess::condition_variable_any can support it just like std::condition_variable_any.

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