mp-coro
mp-coro copied to clipboard
cancellation implementation (minus integration with build system)
Hey. This is a bundle of a couple of commits with an implementation for cancellation tokens and callback registration.
This has a similar structure to that of cancellation tokens in cppcoro or folly.
Things contained in this pull request:
-
cancellation tokensandcancellation_source - support for registering callbacks on cancellation through
cancellation_registrationand a data structurecancellation_registry. - some source files. In the design there is an inherent cyclic dependency between
cancellation_registration,cancellation_registry, andcancellation_state, that was unavoidable using only header files. - changes to src/CMakeLists.txt Since it is no longer a header only library, some properties do not have INTERFACE scope anymore (but my cmake-foo is limited so maybe there's a better approach).