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

Fix delivering response promises in actor state destructors #12

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

dominiklohmann
Copy link
Member

No description provided.

@dominiklohmann dominiklohmann added the bug 🪲 A resolution of an existing bug label Jan 16, 2024
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in principle, although I think I'm a bit confused by the semantics of when source can or can't be null.

As an aside, I wonder if this comment from response_promise.hpp is also causing races, since the rule doesn't seem to be as clear-cut as the comment suggests:

  // Note: response promises must remain local to their owner. Hence, we don't
  //       need a thread-safe reference count for the state.

libcaf_core/src/response_promise.cpp Show resolved Hide resolved
libcaf_core/src/response_promise.cpp Outdated Show resolved Hide resolved
libcaf_core/src/response_promise.cpp Outdated Show resolved Hide resolved
@dominiklohmann dominiklohmann force-pushed the topic/experimental-rp-fix branch from 1071976 to 16afd92 Compare January 17, 2024 12:01
@dominiklohmann dominiklohmann force-pushed the topic/experimental-rp-fix branch from 16afd92 to bf88d1c Compare January 17, 2024 12:03
@dominiklohmann
Copy link
Member Author

@lava and I went over the changes together in a call to address the review feedback.

@dominiklohmann dominiklohmann merged commit e1d9102 into vast/0.18.x Jan 17, 2024
0 of 2 checks passed
@dominiklohmann dominiklohmann deleted the topic/experimental-rp-fix branch January 17, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 A resolution of an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants