diff options
| author | 2020-04-01 18:25:32 +0000 | |
|---|---|---|
| committer | 2020-04-01 18:25:32 +0000 | |
| commit | ef92508f70168e68eacce725f8b004a3d1342e8a (patch) | |
| tree | 0d418846a683214f532033c68a719c3f593a0083 | |
| parent | caeafbfce30ba2a7b0a69e97203c6207d78fcf65 (diff) | |
| parent | ea2ab0b7b4c129f30357609ea77a317613439324 (diff) | |
Merge "Document linkToDeath behavior on object cleanup."
| -rw-r--r-- | libs/binder/include/binder/IBinder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/include/binder/IBinder.h b/libs/binder/include/binder/IBinder.h index 64604b74f0..eea0e89738 100644 --- a/libs/binder/include/binder/IBinder.h +++ b/libs/binder/include/binder/IBinder.h @@ -173,6 +173,10 @@ public: * The @a cookie is optional -- if non-NULL, it should be a * memory address that you own (that is, you know it is unique). * + * @note When all references to the binder being linked to are dropped, the + * recipient is automatically unlinked. So, you must hold onto a binder in + * order to receive death notifications about it. + * * @note You will only receive death notifications for remote binders, * as local binders by definition can't die without you dying as well. * Trying to use this function on a local binder will result in an |