-
Notifications
You must be signed in to change notification settings - Fork 235
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
[controller] allows polymorphism of the controller #2309
Conversation
7873437
to
f2fbf6a
Compare
f2fbf6a
to
65f9ed9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2309 +/- ##
===========================================
- Coverage 55.77% 39.91% -15.87%
===========================================
Files 87 91 +4
Lines 6890 9897 +3007
Branches 0 732 +732
===========================================
+ Hits 3843 3950 +107
- Misses 3047 5745 +2698
- Partials 0 202 +202 ☔ View full report in Codecov by Sentry. |
2b267de
to
9a9d979
Compare
544c54d
to
6e6a9e7
Compare
@@ -194,9 +188,19 @@ class RcpHost : public MainloopProcessor, public ThreadController | |||
|
|||
~RcpHost(void) override; | |||
|
|||
// Thread Control APIs | |||
// Thread Control virtual methods | |||
void GetDeviceRole(const DeviceRoleHandler aHandler) override; |
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.
Maybe in a future PR: make this parameter either a non-const value or a const reference.
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.
SG. Let's do it in a seperate PR.
e7f80e8
to
0eba402
Compare
302de00
to
d083088
Compare
d083088
to
e112593
Compare
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.
LGTM overall
e112593
to
d5f616a
Compare
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.
LGTM.
d5f616a
to
fac7dd6
Compare
This PR is also a breakdown of #2283
This PR adds a factory method
CreateInstance
to provide polymorphismfor the
ThreadController
. This PR moves the construction and initializationof the components to RCP specific methods and only contructs these
modules when the Co-processor is an RCP.