-
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
[linux] dbus sharing design #1084
Comments
I used to hit some issues with calling dbus methods from multiple threads during dbus_mojo_adaptor development. I think the best way to handle this issue is to have a single thread running dbus dispatcher, BT, WiFi, Thread all register their own object path and own their own dbus interface, but all of them share the unique dbus connection established by the D-Bus IO thread |
From weekly call: @turon How to test generic dbus handler w/o tie to ble, wifi, or other usage? |
@yufengwangca : proceeding with gio/glib approach. Proceeding to implementation stage. 2-3 days expected. |
This issue can be closed |
Merge in WMN_TOOLS/matter from feature/cherry-pick_pr_for_DIC_feature to RC_2.2.0-1.2 Squashed commit of the following: commit f5166a2be3d3849146f89742ce0ef2a0c76bcbd3 Author: KishorSilabs <[email protected]> Date: Fri Aug 25 18:08:41 2023 +0530 [Silabs] DIC Changes (project-chip#28857) * AWS OTA Changes for SOC * Added missing mbedtls defines and files for dic * Restyled by gn * Removed not required macros --------- Co-authored-by: thirupathi <[email protected]> Co-authored-by: Restyled.io <[email protected]>
Merge in WMN_TOOLS/matter from feature/cherry-pick_pr_for_DIC_feature to RC_2.2.0-1.2 Squashed commit of the following: commit f5166a2be3d3849146f89742ce0ef2a0c76bcbd3 Author: KishorSilabs <[email protected]> Date: Fri Aug 25 18:08:41 2023 +0530 [Silabs] DIC Changes (project-chip#28857) * AWS OTA Changes for SOC * Added missing mbedtls defines and files for dic * Restyled by gn * Removed not required macros --------- Co-authored-by: thirupathi <[email protected]> Co-authored-by: Restyled.io <[email protected]>
Problem
Extend PlatformMgr to allow service registration to select loop.
Each service creates its own thread to drive DBUS: Thread, BLE, WiFi.
Need a consistent way to register such services to drive DBUS in a common way.
Proposed Solution
Map out pros and cons of each approach below.
Down-select solution.
Implement solution with unit tests.
Allow service to register with PlatformMgr main select loop.
delegate struct { .prepareSelect, .update }
Or dedicated I/O thread for DBUS
Or separate threads, but common way to drive DBUS
The text was updated successfully, but these errors were encountered: