Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a268f078 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add a comment on how to achieve shared_from_this for SharedRefBase."...

Merge "Add a comment on how to achieve shared_from_this for SharedRefBase." am: 3f285c72 am: fa653504 am: 847fe681

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2116896



Change-Id: I45eaaab4bf9218406967429e1d688dc19075e89b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4c7f5901 847fe681
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,10 +43,12 @@
namespace ndk {

/**
 * analog using std::shared_ptr for internally held refcount
 * Binder analog to using std::shared_ptr for an internally held refcount.
 *
 * ref must be called at least one time during the lifetime of this object. The recommended way to
 * construct this object is with SharedRefBase::make.
 *
 * If you need a "this" shared reference analogous to shared_from_this, use this->ref().
 */
class SharedRefBase {
   public: