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

Commit 5dfc1231 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libbinder: LazyServiceRegistrar documentation" am: 02d7e69f am: 7baa4674

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1391126

Change-Id: Icca106eaf3f81b652c4c947eac184808612709ab
parents cefec138 7baa4674
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();