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

Commit 3f285c72 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 5cf209cd 10317edc
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: