-
Notifications
You must be signed in to change notification settings - Fork 128
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
[ProcessContainers] Update Dobby implementation #1771
Conversation
@@ -115,7 +111,7 @@ namespace ProcessContainers { | |||
|
|||
// Dobby stop is async - block until we get the notification the container | |||
// has actually stopped | |||
this->InternalLock(); | |||
// this->InternalLock(); |
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.
can you please remove this line if it's not needed?
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.
InternalLock() was used to protect the internal list of created containers, which is now handled outside of container provider implementations (since there can be multiple providers). Therefore the InternalLock() method has been removed altogether.
In this context there container list was not modified, so using this lock was not required. But, perhaps, it was reused for a different purpose, so it was only commented out - as a remark, because it may need reviewing whether a critical section is indeed needed here.
I will remove this, since the original purpose of InternalLock is gone.
@@ -139,7 +135,7 @@ namespace ProcessContainers { | |||
} | |||
} | |||
|
|||
this->InternalUnlock(); | |||
// this->InternalUnlock(); |
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.
remove this line as well
No description provided.