Closed
Bug 932728
Opened 12 years ago
Closed 12 years ago
[DBus] Run DBus client on I/O thread
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(4 files, 4 obsolete files)
1.52 KB,
patch
|
qdot
:
review+
qdot
:
feedback+
echou
:
feedback+
|
Details | Diff | Splinter Review |
7.88 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
28.89 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
32.98 KB,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
If we can run the DBus code on the I/O thread, we can save the resources of the extra DBus thread and simplify the code base.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #824573 -
Flags: feedback?(kyle)
Attachment #824573 -
Flags: feedback?(echou)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #824574 -
Flags: feedback?(kyle)
Attachment #824574 -
Flags: feedback?(echou)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #824576 -
Flags: feedback?(kyle)
Attachment #824576 -
Flags: feedback?(echou)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #824577 -
Flags: feedback?(kyle)
Attachment #824577 -
Flags: feedback?(echou)
Assignee | ||
Comment 5•12 years ago
|
||
Hi,
These patches worked nicely when I tested them, but I'd expect they might contain subtle bugs somewhere.
Updated•12 years ago
|
Attachment #824573 -
Flags: feedback?(kyle) → feedback+
Comment 6•12 years ago
|
||
BTW, you don't need to go through fb? then r? if things are mostly ready, you can just r? things and save yourself having to ask me to go back through after I fb+ stuff.
Updated•12 years ago
|
Attachment #824574 -
Flags: feedback?(kyle) → feedback+
Updated•12 years ago
|
Attachment #824576 -
Flags: feedback?(kyle) → feedback+
Comment 7•12 years ago
|
||
Comment on attachment 824577 [details] [diff] [review]
[04] Bug 932728: Run DBus on the I/O thread
Review of attachment 824577 [details] [diff] [review]:
-----------------------------------------------------------------
Wow. So clean. :D
Attachment #824577 -
Flags: feedback?(kyle) → feedback+
Comment 8•12 years ago
|
||
Comment on attachment 824573 [details] [diff] [review]
[01] 932728: Don't inherit DBusWatcher from RawDBusConnection
Review of attachment 824573 [details] [diff] [review]:
-----------------------------------------------------------------
The modification of this patch seems to be mostly covered by the patch of bug 931038. The patch looks good, but please remember to rebase before checking in.
Attachment #824573 -
Flags: feedback?(echou) → feedback+
Comment 9•12 years ago
|
||
Hey Thomas,
Sorry for the late reply. I'll review rest patches on Tuesday since I'll be out-of-office on Monday.
Comment 10•12 years ago
|
||
Comment on attachment 824574 [details] [diff] [review]
[02] Bug 932728: Open only one connection to DBus
Review of attachment 824574 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #824574 -
Flags: feedback?(echou) → feedback+
Comment 11•12 years ago
|
||
Comment on attachment 824576 [details] [diff] [review]
[03] Bug 932728: Use private DBus connection
Review of attachment 824576 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #824576 -
Flags: feedback?(echou) → feedback+
Comment 12•12 years ago
|
||
Comment on attachment 824577 [details] [diff] [review]
[04] Bug 932728: Run DBus on the I/O thread
Review of attachment 824577 [details] [diff] [review]:
-----------------------------------------------------------------
To be honest, I'm not familiar with previous implementation of DBusThread.cpp. So r+ since Kyle is happy with this. :)
Thanks for cleaning this up!
Attachment #824577 -
Flags: feedback?(echou) → feedback+
Assignee | ||
Comment 13•12 years ago
|
||
No complains? :) I though that I should get some feedback first, because of the size of the patch set.
Assignee | ||
Comment 14•12 years ago
|
||
(In reply to Eric Chou [:ericchou] [:echou] from comment #8)
> Comment on attachment 824573 [details] [diff] [review]
> [01] 932728: Don't inherit DBusWatcher from RawDBusConnection
>
> Review of attachment 824573 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> The modification of this patch seems to be mostly covered by the patch of
> bug 931038. The patch looks good, but please remember to rebase before
> checking in.
I uploaded the wrong patch file. :( But I'll supply the correct one for the actual review.
Assignee | ||
Comment 15•12 years ago
|
||
Attachment #824573 -
Attachment is obsolete: true
Attachment #827324 -
Flags: review?(kyle)
Assignee | ||
Updated•12 years ago
|
Attachment #824574 -
Flags: review?(kyle)
Attachment #824574 -
Flags: review?(echou)
Assignee | ||
Updated•12 years ago
|
Attachment #824576 -
Flags: review?(kyle)
Assignee | ||
Comment 16•12 years ago
|
||
Only rebased.
Attachment #824577 -
Attachment is obsolete: true
Attachment #827326 -
Flags: review?(kyle)
Updated•12 years ago
|
Attachment #827324 -
Flags: review?(kyle) → review+
Updated•12 years ago
|
Attachment #824574 -
Flags: review?(kyle) → review+
Updated•12 years ago
|
Attachment #824576 -
Flags: review?(kyle) → review+
Updated•12 years ago
|
Attachment #827326 -
Flags: review?(kyle) → review+
Comment 17•12 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #13)
> No complains? :) I though that I should get some feedback first, because of
> the size of the patch set.
Yeah, just throwing things up for review first is fine. I usually only fb? when I have something half done and want someone looking at the work in progress but the patch itself definitely couldn't land.
Comment 18•12 years ago
|
||
Comment on attachment 824574 [details] [diff] [review]
[02] Bug 932728: Open only one connection to DBus
Review of attachment 824574 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nits addressed.
::: dom/bluetooth/linux/BluetoothDBusService.cpp
@@ +1654,5 @@
> // Normally we'll receive the signal 'AdapterAdded' for the default
> // adapter from the DBus daemon during start up. If we restart after
> // a crash, the default adapter might already be available, so we ask
> // the daemon explicitly here.
> + bool success = connection->SendWithReply(OnDefaultAdapterReply, nullptr,
super-nit: please line up.
Attachment #824574 -
Flags: review?(echou) → review+
Assignee | ||
Comment 19•12 years ago
|
||
Rebased on latest Bluetooth code.
Attachment #824574 -
Attachment is obsolete: true
Attachment #8344612 -
Flags: review+
Assignee | ||
Comment 20•12 years ago
|
||
Rebased on top of latest Bluetooth code.
Attachment #8344612 -
Attachment is obsolete: true
Attachment #8346500 -
Flags: review+
Assignee | ||
Comment 21•12 years ago
|
||
Finally :)
https://hg.mozilla.org/integration/b2g-inbound/rev/b4b1686e4db2
https://hg.mozilla.org/integration/b2g-inbound/rev/905ce734b772
https://hg.mozilla.org/integration/b2g-inbound/rev/93089287545b
https://hg.mozilla.org/integration/b2g-inbound/rev/0ddb34970ecb
https://tbpl.mozilla.org/?tree=B2g-Inbound&rev=0ddb34970ecb
https://hg.mozilla.org/mozilla-central/rev/b4b1686e4db2
https://hg.mozilla.org/mozilla-central/rev/905ce734b772
https://hg.mozilla.org/mozilla-central/rev/93089287545b
https://hg.mozilla.org/mozilla-central/rev/0ddb34970ecb
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•