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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

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.
Attachment #824573 - Flags: feedback?(kyle)
Attachment #824573 - Flags: feedback?(echou)
Attachment #824574 - Flags: feedback?(kyle)
Attachment #824574 - Flags: feedback?(echou)
Attachment #824576 - Flags: feedback?(kyle)
Attachment #824576 - Flags: feedback?(echou)
Attachment #824577 - Flags: feedback?(kyle)
Attachment #824577 - Flags: feedback?(echou)
Hi, These patches worked nicely when I tested them, but I'd expect they might contain subtle bugs somewhere.
Attachment #824573 - Flags: feedback?(kyle) → feedback+
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.
Attachment #824574 - Flags: feedback?(kyle) → feedback+
Attachment #824576 - Flags: feedback?(kyle) → feedback+
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 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+
Hey Thomas, Sorry for the late reply. I'll review rest patches on Tuesday since I'll be out-of-office on Monday.
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 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 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+
No complains? :) I though that I should get some feedback first, because of the size of the patch set.
(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.
Attachment #824574 - Flags: review?(kyle)
Attachment #824574 - Flags: review?(echou)
Attachment #824576 - Flags: review?(kyle)
Only rebased.
Attachment #824577 - Attachment is obsolete: true
Attachment #827326 - Flags: review?(kyle)
Attachment #827324 - Flags: review?(kyle) → review+
Attachment #824574 - Flags: review?(kyle) → review+
Attachment #824576 - Flags: review?(kyle) → review+
Attachment #827326 - Flags: review?(kyle) → review+
(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 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+
Depends on: 936402
Rebased on latest Bluetooth code.
Attachment #824574 - Attachment is obsolete: true
Attachment #8344612 - Flags: review+
Depends on: 947870
Rebased on top of latest Bluetooth code.
Attachment #8344612 - Attachment is obsolete: true
Attachment #8346500 - Flags: review+
Depends on: 956841
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: