-
Notifications
You must be signed in to change notification settings - Fork 592
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
Added comments to connection's implementation #2047
Conversation
@@ -576,7 +576,7 @@ Ice::ConnectionI::waitUntilFinished() | |||
// guarantee that there are no outstanding calls when deactivate() | |||
// is called on the servant locators. | |||
// | |||
_conditionVariable.wait(lock, [this] { return _state >= StateFinished && _dispatchCount == 0; }); | |||
_conditionVariable.wait(lock, [this] { return _state >= StateFinished && _upcallCount == 0; }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me why we wait for all upcalls to complete. The comment mentions servant locators but servant locators only care about dispatches. Once we have an actual dispatch count, should we use it here instead of _upcallCount?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's about providing the guarantee that no more upcalls are running once the communicator destroy method returns.
This PR adds comments to Connection::message implementation.