forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposal for issue project-chip#5556 rework system layer event loop
☛ This PR is not intended to be merged (or even build in CI since I've left out test changes in the interest of brevity). The intent is to get feedback on the general approach, to avoid wasting time on the remaining work if there are major objections and/or better ideas. The end goal of issue project-chip#5556 is to allow CHIP as a library to be used more easily by programs or systems that already have their own I/O event loop. This defines a SystemSocketWatcher, primarly used by the Inet layer, as an alternative to the current `select()`-based loop for socket-based platforms. The interface is intended to make minimal assumptions about the underlying implementation. The proof-of-concept implementation uses the libevent library and works for the completed subset — enough to run `chip-tool basic read vendor-name 0`. The current `select()`- based implementation has been _partly_ converted to use the same interface.
- Loading branch information
1 parent
e468f42
commit 1fc4aea
Showing
30 changed files
with
597 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.