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

Commit 847fe681 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

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



Change-Id: Iddd6167964d3738d200acc2403f17c9cb4a2141b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 76311212 fa653504
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: