-
Notifications
You must be signed in to change notification settings - Fork 278
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
[Link Event Damping] Add Abstract SelectEventHandler class to handle link event damping timer events. #1312
Conversation
c4df0f4
to
d144513
Compare
Adding @Junchao-Mellanox for review. |
syncd/SelectableEventHandler.h
Outdated
|
||
protected: | ||
|
||
SelectableEventHandler() |
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.
do we really need this?
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.
Why constructor is protected ?
syncd/SelectableEventHandler.h
Outdated
|
||
protected: | ||
|
||
SelectableEventHandler() |
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.
Why constructor is protected ?
d144513
to
c794e58
Compare
@kcudnik Please let me know if you have any other comments/concerns. If everything looks good, can you please merge the PR? Thank you. |
You did not answered my questions about protected constructors |
In another comment reply, I had added the explanation: Strictly speaking constructor is not needed, but constructor was added as protected just to make it clear to clients that they cannot directly instantiate an object of the class. Agree, this class still be uninstantiable because of the pure virtual method, but to put the emphasize on not trying to directly instantiate this class, protected constructor was kept. I am inclined to keep constructor as: Thank you. |
fd9efeb
to
7813cec
Compare
link event damping timer events. - Handler in the class will be used to handle the timer event of link event dampers. HLD: sonic-net/SONiC#1071
7813cec
to
764ec38
Compare
HLD: sonic-net/SONiC#1071