-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Linux] Run glib event loop on dedicated glib Matter context (#25960)
* Run Glib thread on a dedicated context * Run WiFiIPChangeListener on dedicated context * Do not use g_io_add_watch when adding IO watch * Check if D-Bus object proxies are created correctly All D-Bus proxy objects created with GLib *_new_for_bus and *_new_for_bus_sync functions have to be created with thread default main context set. Otherwise, proxy object internal signals will be scheduled on GLib global main context. We do not want that, because we do not know whether Matter SDK will be used in GLib-based application or not, so we can not run global main even loop on our own - all Matter-related GLib signals shell be run on a dedicated Matter GLib context. * Initialize BlueZ D-Bus object proxy on Matter GLib event loop * Initialize WPA D-Bus object proxy on Matter GLib event loop * Fix typo: devcie -> device * Initialize OTBR D-Bus object proxy on Matter GLib event loop * Fix glib source watch removal in BLE module * Enable glib event loop in Thread-only configuration * Run OTBR async calls on Matter glib context * Document GDBusCreateObjectManagerContext usage
- Loading branch information
Showing
13 changed files
with
230 additions
and
106 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
Oops, something went wrong.