-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[thread-host] add ThreadEnabled state callback (#2612)
This commit adds `AddThreadEnabledStateChangedCallback` to `ThreadHost` and implements it for RcpHost. Since the `ThreadEnabledState` is subscribed by some platform services, (for example, on Android) and this state is also required to implement `Join`, `Leave`, `ScheduleMigration` and `SetThreadEnabled`, this commit adds the `ThreadEnabledState` to `RcpHost` and provide an API to allow other components to subscribe to this state. This commit makes the behavior of `ScheduleMigration` and `SetThreadEnabled` same as the Android binder API. And the unit test is updated accordingly.
- Loading branch information
Showing
6 changed files
with
103 additions
and
26 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