History log of /system/chre/util/include/chre/util/singleton.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e0471ea19d5baa010881f04cf7bfb482c4b47807 26-Apr-2018 Andrew Rossignol <aarossig@google.com> Add safeGet() to Singleton<> and make get() simpler

- Removes a condition from get()
- This cuts code size slightly

Bug: 78638846
Test: ./load_chre.sh, see CHRE run
Change-Id: Ie71fd2328b1728103287f1cbb0ff5696a45ddbdf
/system/chre/util/include/chre/util/singleton.h
c7c70aa903fdef3a6074cdb06d266b6ad3821d27 10-Jan-2017 Andrew Rossignol <aarossig@google.com> Adds a Singleton template

- Allows for one instance of a given type and uses static storage with
deferred initialization.
- Provides a lifecycle test to validate the behavior

Change-Id: I76fa737f50612be1386df4bf79733c86814d56fa
/system/chre/util/include/chre/util/singleton.h