-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add the ability for EventLoopHandlers to participate in a Select-based event loop #34433
Conversation
…h=false Note: This is for unit testing / development purposes only.
f1b152b
to
d3f70f6
Compare
PR #34433: Size comparison from 8e32ce7 to d3f70f6 Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
|
d3f70f6
to
c76229d
Compare
PR #34433: Size comparison from 8306353 to c76229d Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
|
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.
Please add documentation to the PR summary for me to understand what this PR is about before reading it. the title of Add the ability for EventLoopHandlers to participate ... does not explain what event loop handlers are, why we have them.
Also overall there should be better documentation in the files and eventloophandler seems stand-alone and should be a separate header.
(Sorry accidentally ended up editing the comment when I meant to hit quote reply) As far as understanding the context goes, in my opinion it would have been easier to see what the purpose of an EventLoopHandler is by seeing an example of how one is used. This is why I originally included this code in #33968, but broke it out into a separate PR based on your request. I'm adding more documentation as requested and investigating the test failure. |
The fake PlatformManagerImpl doesn't drive the SystemLayer event loop.
PR #34433: Size comparison from 10531e1 to 4100ebc Full report (84 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Dismissing changes requested: summary was updated and has several checkmarks. This should not be blocked.
EventLoopHandler
s can be registered with aLayerSocketsLoop
instance to enable participation of those handlers in the processing cycle of the event loop. This makes it possible to implement adapters that allow components utilizing a third-party event loop API (e.g. ubus) to participate in the Matter event loop, instead of having to run an entirely separate event loop on another thread.This was split out of #33968.