Closed
Bug 853550
Opened 12 years ago
Closed 11 years ago
[Bluetooth] Remove DBus/Bluetooth command thread
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(3 files)
2.77 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
3.11 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
6.77 KB,
patch
|
echou
:
review+
gyeh
:
review+
|
Details | Diff | Splinter Review |
To simplify the Bluetooth system and save some resources we want to remove the command thread for Bluetooth/DBus. This thread is currently necessary because we have calls to DBus, which we cannot execute from within the main thread because they are blocking. Once bug 830290 landed, we have the infrastructure to convert all remaining blocking DBus calls to asyncronous calls. This will allow us to remove the need for the command thread.
Updated•12 years ago
|
Component: General → Bluetooth
Assignee | ||
Comment 1•11 years ago
|
||
I think that removing the command thread will be a long-term process.
Currently, several operations are blocking only. This includes methods outside of the DBus/BlueZ code, such as BluetoothHFPManager::Connect. If we want to convert this code to be non-blocking, we'll need to redesign the way this code works.
I think we should start by changing the BlueZ code to be more non-blocking and do most processing in the call back functions of the replies. Once we have this in place we can work 'outwards' to the calling code.
This bug should be the meta-bug for all related changes.
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #798429 -
Flags: review?(echou)
Assignee | ||
Comment 3•11 years ago
|
||
I turned Bluetooth on and off several dozen times in a row to test this change.
Attachment #798431 -
Flags: review?(kyle)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #798432 -
Flags: review?(gyeh)
Attachment #798432 -
Flags: review?(echou)
Updated•11 years ago
|
Attachment #798431 -
Flags: review?(kyle) → review+
Updated•11 years ago
|
Attachment #798429 -
Flags: review?(echou) → review+
Comment 5•11 years ago
|
||
Comment on attachment 798432 [details] [diff] [review]
[03] Bug 853550: Replace Bluetooth command thread
Review of attachment 798432 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. Thanks :)
Attachment #798432 -
Flags: review?(gyeh) → review+
Comment 6•11 years ago
|
||
Comment on attachment 798432 [details] [diff] [review]
[03] Bug 853550: Replace Bluetooth command thread
Review of attachment 798432 [details] [diff] [review]:
-----------------------------------------------------------------
You did it! Thanks for solving a series of bugs and making the codebase cleaner! :)
Attachment #798432 -
Flags: review?(echou) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Take this, command thread!
https://hg.mozilla.org/integration/b2g-inbound/rev/8ad04b673163
https://hg.mozilla.org/integration/b2g-inbound/rev/50e6aad45b40
https://hg.mozilla.org/integration/b2g-inbound/rev/9d22ff450bfd
https://tbpl.mozilla.org/?tree=B2g-Inbound&rev=9d22ff450bfd
Thanks everyone for the reviews. :)
https://hg.mozilla.org/mozilla-central/rev/8ad04b673163
https://hg.mozilla.org/mozilla-central/rev/50e6aad45b40
https://hg.mozilla.org/mozilla-central/rev/9d22ff450bfd
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•