|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by Jay Civelli Modified:
4 years, 1 month ago Reviewers:
yzshen1 CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review) Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionGeneralizing ThreadSafeInterfacePtr class so that it can be
specialized to support InterfacePtr and AssociatedInterfacePtr.
BUG=666222
Committed: https://crrev.com/813fe9380b32017f9187b9fb1172354bd2763d65
Cr-Commit-Position: refs/heads/master@{#433056}
Patch Set 1 #Patch Set 2 : Fixed BUILD.gn #
Total comments: 2
Patch Set 3 : Addressed comments #Patch Set 4 : Resurecting comment #
Total comments: 2
Patch Set 5 : Addressed comment + sync #
Messages
Total messages: 37 (23 generated)
Description was changed from ========== Mojo: adding a thread safe associated interface ptr. Refactoring the ThreadSafeInterfacePtr class into a base class that is used in the new ThreadSafeAssociatedInterfacePtr class that lets callers invoke methods from any threads. BUG=666222 ========== to ========== Mojo: adding a thread safe associated interface ptr. Refactoring the ThreadSafeInterfacePtr class into a base class that is used in the new ThreadSafeAssociatedInterfacePtr class that lets callers invoke methods from any threads. BUG=666222 ==========
jcivelli@chromium.org changed reviewers: + yzshen@chromium.org
The CQ bit was checked by jcivelli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by jcivelli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2506383002/diff/20001/mojo/public/cpp/binding... File mojo/public/cpp/bindings/thread_safe_associated_interface_ptr.h (right): https://codereview.chromium.org/2506383002/diff/20001/mojo/public/cpp/binding... mojo/public/cpp/bindings/thread_safe_associated_interface_ptr.h:41: class ThreadSafeAssociatedInterfacePtr : It seems this code is the same as ThreadSafeInterfacePtr. Does it make sense to add a template template parameter to ThreadSafeInterfacePtrBase, so that: tempalte <typename Interface, template<typename> typename InterfacePtrType> class ThreadSafeInterfacePtrBase { ... }; template <typename Interface> using ThreadSafeAssociatedInterfacePtr = ThreadSafeInterfaceBase<Interface, AssociatedIntefacePtr>; template <typename Interface> using ThreadSafeInterfacePtr = ThreadSafeInterfaceBase<Interface, IntefacePtr>;
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2506383002/diff/20001/mojo/public/cpp/binding... File mojo/public/cpp/bindings/thread_safe_associated_interface_ptr.h (right): https://codereview.chromium.org/2506383002/diff/20001/mojo/public/cpp/binding... mojo/public/cpp/bindings/thread_safe_associated_interface_ptr.h:41: class ThreadSafeAssociatedInterfacePtr : On 2016/11/17 17:58:12, yzshen1 wrote: > It seems this code is the same as ThreadSafeInterfacePtr. Does it make sense to > add a template template parameter to ThreadSafeInterfacePtrBase, so that: > > > tempalte <typename Interface, template<typename> typename InterfacePtrType> > class ThreadSafeInterfacePtrBase { ... }; > > template <typename Interface> > using ThreadSafeAssociatedInterfacePtr = ThreadSafeInterfaceBase<Interface, > AssociatedIntefacePtr>; > > template <typename Interface> > using ThreadSafeInterfacePtr = ThreadSafeInterfaceBase<Interface, IntefacePtr>; Oh, that's nice! My template fu was not that good that I thought of doing that. Done.
The CQ bit was checked by jcivelli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM Thanks! https://codereview.chromium.org/2506383002/diff/60001/mojo/public/cpp/binding... File mojo/public/cpp/bindings/thread_safe_interface_ptr.h (right): https://codereview.chromium.org/2506383002/diff/60001/mojo/public/cpp/binding... mojo/public/cpp/bindings/thread_safe_interface_ptr.h:52: LOG(ERROR) << "Attempting to create a ThreadSafeInterfacePtr from an " nit: maybe change the comment slightly: ThreadSafeInterfacePtr -> "ThreadSafe[Associated]InterfacePtr" InterfacePtr -> "[Associated]InterfacePtr"
Description was changed from ========== Mojo: adding a thread safe associated interface ptr. Refactoring the ThreadSafeInterfacePtr class into a base class that is used in the new ThreadSafeAssociatedInterfacePtr class that lets callers invoke methods from any threads. BUG=666222 ========== to ========== Generalizing ThreadSafeInterfacePtr class so that it can be specialized to support InterfacePtr and AssociatedInterfacePtr. BUG=666222 ==========
https://codereview.chromium.org/2506383002/diff/60001/mojo/public/cpp/binding... File mojo/public/cpp/bindings/thread_safe_interface_ptr.h (right): https://codereview.chromium.org/2506383002/diff/60001/mojo/public/cpp/binding... mojo/public/cpp/bindings/thread_safe_interface_ptr.h:52: LOG(ERROR) << "Attempting to create a ThreadSafeInterfacePtr from an " On 2016/11/17 19:21:41, yzshen1 wrote: > nit: maybe change the comment slightly: > ThreadSafeInterfacePtr -> "ThreadSafe[Associated]InterfacePtr" > InterfacePtr -> "[Associated]InterfacePtr" Done.
The CQ bit was checked by jcivelli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yzshen@chromium.org Link to the patchset: https://codereview.chromium.org/2506383002/#ps80001 (title: "Addressed comment + sync")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jcivelli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply the patch.
The CQ bit was checked by jcivelli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply the patch.
The CQ bit was checked by jcivelli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Generalizing ThreadSafeInterfacePtr class so that it can be specialized to support InterfacePtr and AssociatedInterfacePtr. BUG=666222 ========== to ========== Generalizing ThreadSafeInterfacePtr class so that it can be specialized to support InterfacePtr and AssociatedInterfacePtr. BUG=666222 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Generalizing ThreadSafeInterfacePtr class so that it can be specialized to support InterfacePtr and AssociatedInterfacePtr. BUG=666222 ========== to ========== Generalizing ThreadSafeInterfacePtr class so that it can be specialized to support InterfacePtr and AssociatedInterfacePtr. BUG=666222 Committed: https://crrev.com/813fe9380b32017f9187b9fb1172354bd2763d65 Cr-Commit-Position: refs/heads/master@{#433056} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/813fe9380b32017f9187b9fb1172354bd2763d65 Cr-Commit-Position: refs/heads/master@{#433056} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
