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

Commit d28d2f65 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: LazyServiceRegistrar documentation

This class assumes other configurations, so indicating them and further
documentation here.

Bug: 162749088
Test: N/A
Change-Id: I8f3af0d11a17a9b89ec01afc3a13755e0dedd669
parent 09f7bc11
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -26,7 +26,19 @@ namespace internal {
class ClientCounterCallback;
}  // namespace internal

/** Exits when all services registered through this object have 0 clients */
/**
 * Exits when all services registered through this object have 0 clients
 *
 * In order to use this class, it's expected that your service:
 * - registers all services in the process with this API
 * - configures services as oneshot in init .rc files
 * - configures services as disabled in init.rc files, unless a client is
 *   guaranteed early in boot, in which case, forcePersist should also be used
 *   to avoid races.
 * - uses 'interface' declarations in init .rc files
 *
 * For more information on init .rc configuration, see system/core/init/README.md
 **/
class LazyServiceRegistrar {
   public:
     static LazyServiceRegistrar& getInstance();