Skip to content

Conversation

juarez-gonza
Copy link

@juarez-gonza juarez-gonza commented Jun 29, 2023

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 tokens and cancellation_source
  • support for registering callbacks on cancellation through cancellation_registration and a data structure cancellation_registry.
  • some source files. In the design there is an inherent cyclic dependency between cancellation_registration, cancellation_registry, and cancellation_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).

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.

1 participant