Closed
Bug 990392
Opened 10 years ago
Closed 10 years ago
[Bluetooth] Cleanup shared variables in BluetoothDBusService.cpp
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(6 files, 4 obsolete files)
1.03 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
5.25 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
4.19 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
39.64 KB,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
3.31 KB,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
1.93 KB,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
BluetoothDBusService.cpp lists several shared variables that should be reviewer for thread-safety and possibly cleaned up.
Assignee | ||
Comment 1•10 years ago
|
||
s/reviewer/reviewed
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8401278 -
Flags: review?(echou)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8401279 -
Flags: review?(echou)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8401281 -
Flags: review?(echou)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8401282 -
Flags: review?(echou)
Assignee | ||
Updated•10 years ago
|
Attachment #8401281 -
Attachment description: [03] Bug 990392: Move sAuthorizedServiceClass to I/O thread → [03] Bug 990392: Cleanup |GetServiceChannel| in BluetoothDBusService
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8401283 -
Flags: review?(echou)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8401284 -
Flags: review?(echou)
Updated•10 years ago
|
Attachment #8401278 -
Flags: review?(echou) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8401279 [details] [diff] [review] [02] Bug 990392: Move sAuthorizedServiceClass to I/O thread Review of attachment 8401279 [details] [diff] [review]: ----------------------------------------------------------------- Hi Thomas, This looks fine to me. However I was thinking that maybe we should make sAuthorizedServiceClass a constant which contains BluetoothServiceClass::A2DP and BluetoothServiceClass::HID since sAuthorizedServiceClass won't be changed from the beginning. What do you think?
Assignee | ||
Comment 9•10 years ago
|
||
Hi (In reply to Eric Chou [:ericchou] [:echou] from comment #8) > Comment on attachment 8401279 [details] [diff] [review] > [02] Bug 990392: Move sAuthorizedServiceClass to I/O thread > > Review of attachment 8401279 [details] [diff] [review]: > ----------------------------------------------------------------- > > Hi Thomas, > > This looks fine to me. However I was thinking that maybe we should make > sAuthorizedServiceClass a constant which contains > BluetoothServiceClass::A2DP and BluetoothServiceClass::HID since > sAuthorizedServiceClass won't be changed from the beginning. What do you > think? This definitely makes sense to me. I'll update the patch accordingly.
Comment 10•10 years ago
|
||
Comment on attachment 8401281 [details] [diff] [review] [03] Bug 990392: Cleanup |GetServiceChannel| in BluetoothDBusService Review of attachment 8401281 [details] [diff] [review]: ----------------------------------------------------------------- I can't believe you found this!
Attachment #8401281 -
Flags: review?(echou) → review+
Comment 11•10 years ago
|
||
Comment on attachment 8401282 [details] [diff] [review] [04] Bug 990392: Move |sAdapterPath| to I/O thread Review of attachment 8401282 [details] [diff] [review]: ----------------------------------------------------------------- r=me with nits addressed. ::: dom/bluetooth/bluez/BluetoothDBusService.cpp @@ +3565,5 @@ > > void Run() MOZ_OVERRIDE > { > MOZ_ASSERT(!NS_IsMainThread()); // I/O thread > MOZ_ASSERT(sDBusConnection); nit: MOZ_ASSERT(!sAdapterPath.IsEmpty()), please. @@ +3736,5 @@ > > class SendMetadataTask : public Task > { > public: > + SendMetadataTask(const nsString& aDeviceAddress, nit: please use const nsAString& instead of const nsString& if there's no special reason. @@ +3760,5 @@ > > void Run() MOZ_OVERRIDE > { > MOZ_ASSERT(!NS_IsMainThread()); // I/O thread > MOZ_ASSERT(sDBusConnection); nit: MOZ_ASSERT(!sAdapterPath.IsEmpty()), please. @@ +3920,5 @@ > > void Run() MOZ_OVERRIDE > { > MOZ_ASSERT(!NS_IsMainThread()); // I/O thread > MOZ_ASSERT(sDBusConnection); nit: MOZ_ASSERT(!sAdapterPath.IsEmpty()), please. @@ +4042,5 @@ > > void Run() MOZ_OVERRIDE > { > MOZ_ASSERT(!NS_IsMainThread()); // I/O thread > MOZ_ASSERT(sDBusConnection); nit: MOZ_ASSERT(!sAdapterPath.IsEmpty()), please. @@ +4107,5 @@ > > void Run() MOZ_OVERRIDE > { > MOZ_ASSERT(!NS_IsMainThread()); // I/O thread > MOZ_ASSERT(sDBusConnection); nit: MOZ_ASSERT(!sAdapterPath.IsEmpty()), please.
Attachment #8401282 -
Flags: review?(echou) → review+
Updated•10 years ago
|
Attachment #8401283 -
Flags: review?(echou) → review+
Comment 12•10 years ago
|
||
Comment on attachment 8401284 [details] [diff] [review] [06] Bug 990392: Fix comments about shared variables in BluetoothDBusService Review of attachment 8401284 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8401284 -
Flags: review?(echou) → review+
Assignee | ||
Comment 13•10 years ago
|
||
Changes since v1: - converted sAuthorizedServiceClass to static const array. That's so much better than before. :)
Attachment #8401279 -
Attachment is obsolete: true
Attachment #8401279 -
Flags: review?(echou)
Attachment #8403921 -
Flags: review?(echou)
Assignee | ||
Comment 14•10 years ago
|
||
Changes since v1: - fixed parameter of type nsString - added extra asserts for !sAdapterPath.IsEmpty()
Attachment #8401282 -
Attachment is obsolete: true
Attachment #8403928 -
Flags: review+
Assignee | ||
Comment 15•10 years ago
|
||
Changes since v1: - only rebased
Attachment #8401283 -
Attachment is obsolete: true
Attachment #8403929 -
Flags: review+
Assignee | ||
Comment 16•10 years ago
|
||
Changes since v1: - rebased - added missing period in comment
Attachment #8401284 -
Attachment is obsolete: true
Attachment #8403930 -
Flags: review+
Comment 17•10 years ago
|
||
Comment on attachment 8403921 [details] [diff] [review] [02] Bug 990392: Move sAuthorizedServiceClass to I/O thread (v2) Review of attachment 8403921 [details] [diff] [review]: ----------------------------------------------------------------- Looks decent!
Attachment #8403921 -
Flags: review?(echou) → review+
Assignee | ||
Comment 18•10 years ago
|
||
Great! Thanks for reviewing. https://hg.mozilla.org/integration/b2g-inbound/rev/b98b91b3dfe1 https://hg.mozilla.org/integration/b2g-inbound/rev/d928cffbf731 https://hg.mozilla.org/integration/b2g-inbound/rev/d391c6c5228f https://hg.mozilla.org/integration/b2g-inbound/rev/eee537db59b7 https://hg.mozilla.org/integration/b2g-inbound/rev/dd22e084b2af https://hg.mozilla.org/integration/b2g-inbound/rev/59aa466f0a65 https://tbpl.mozilla.org/?tree=B2g-Inbound&rev=59aa466f0a65
Comment 19•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b98b91b3dfe1 https://hg.mozilla.org/mozilla-central/rev/d928cffbf731 https://hg.mozilla.org/mozilla-central/rev/d391c6c5228f https://hg.mozilla.org/mozilla-central/rev/eee537db59b7 https://hg.mozilla.org/mozilla-central/rev/dd22e084b2af https://hg.mozilla.org/mozilla-central/rev/59aa466f0a65
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•