-
Notifications
You must be signed in to change notification settings - Fork 911
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
C++: Image's m_logBuffers wrt Move in Subscription::add/remove Image #472
Comments
I think you are correct. Would probably be better to use copy semantics instead for add/remove. |
The same issue applies to the poll methods and other client iteration methods. |
tmontgomery
added a commit
that referenced
this issue
Feb 26, 2018
Move semantics in now. Feel free to examine it. Feedback always welcome. |
As usual you are very fast to respond! The changes are fine with me and do resolve the issue I found. Thank you very much! |
JPWatson
pushed a commit
to JPWatson/Aeron
that referenced
this issue
Mar 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to have your opinion on the following. Is it an issue?
Note: I haven't tried to make the following situation happens. At this point, I just suspect this is an issue.
Following is a series of steps leading to the suspected issue:
Application Thread is somehow interrupted...
Because it executes the following code:
newArray[j++] = std::move(oldArray[i]);
which calls:
m_logBuffers = std::move(image.m_logBuffers);
imageList now contains at least one image where image.m_logBuffers is nullptr.
The text was updated successfully, but these errors were encountered: