diff options
author | 2023-01-26 00:46:30 +0000 | |
---|---|---|
committer | 2023-01-26 01:09:13 +0000 | |
commit | 3e083b29d6a9d96b976b2b8ad976be453dcc1468 (patch) | |
tree | 39de4302cb586a6111edfeb4eb39ae288c1c05f9 /cmds/servicemanager/ServiceManager.h | |
parent | eec41c20fccde72e81a00bf6577633a4e6200b4c (diff) |
servicemanager: log why we notify lazy services
This makes it more clear when races which require guaranteeClient
get hit.
Bug: 264814573
Test: check logs
Change-Id: Id4d6984a8120d8df8e13dd748959d71a0c6b8422
Diffstat (limited to 'cmds/servicemanager/ServiceManager.h')
-rw-r--r-- | cmds/servicemanager/ServiceManager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds/servicemanager/ServiceManager.h b/cmds/servicemanager/ServiceManager.h index b24c11c161..f9d4f8fd90 100644 --- a/cmds/servicemanager/ServiceManager.h +++ b/cmds/servicemanager/ServiceManager.h @@ -92,8 +92,9 @@ private: ServiceCallbackMap::iterator* it, bool* found); ssize_t handleServiceClientCallback(const std::string& serviceName, bool isCalledOnInterval); - // Also updates mHasClients (of what the last callback was) - void sendClientCallbackNotifications(const std::string& serviceName, bool hasClients); + // Also updates mHasClients (of what the last callback was) + void sendClientCallbackNotifications(const std::string& serviceName, bool hasClients, + const char* context); // removes a callback from mNameToClientCallback, deleting the entry if the vector is empty // this updates the iterator to the next location void removeClientCallback(const wp<IBinder>& who, ClientCallbackMap::iterator* it); |