diff options
author | 2022-06-06 18:11:46 +0000 | |
---|---|---|
committer | 2022-06-06 18:11:46 +0000 | |
commit | 3f285c72d68dd1a348b5cb3a053f623cad9a863d (patch) | |
tree | e3c958e18c3283d7cd378026c0e07ad2a8bdc839 | |
parent | 5cf209cdd9aec1956df6753af8186dc41b823523 (diff) | |
parent | 10317edca59379067a6c2a3d8302f26eb9570ba6 (diff) |
Merge "Add a comment on how to achieve shared_from_this for SharedRefBase."
-rw-r--r-- | libs/binder/ndk/include_cpp/android/binder_interface_utils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/ndk/include_cpp/android/binder_interface_utils.h b/libs/binder/ndk/include_cpp/android/binder_interface_utils.h index b3bc7f449e..766df16635 100644 --- a/libs/binder/ndk/include_cpp/android/binder_interface_utils.h +++ b/libs/binder/ndk/include_cpp/android/binder_interface_utils.h @@ -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: |