boostorg / interprocess

Boost.org interprocess module
http://boost.org/libs/interprocess
132 stars 117 forks source link

Support stop tokens #221

Open s13n opened 2 months ago

s13n commented 2 months ago

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 commented 1 month ago

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.