diff options
author | Elliott Hughes <enh@google.com> | 2017-02-10 19:02:51 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-02-13 11:29:02 -0800 |
commit | b30769a87acc15fc7f628d8541cdf97aba22e2e2 (patch) | |
tree | d93d47723f27c92021a558e2b71cff64fe5084a9 /base/include/android-base/properties.h | |
parent | 7e7913cb6703c7ff7e2fc31d5dafdfd25f01b899 (diff) | |
download | system_core-b30769a87acc15fc7f628d8541cdf97aba22e2e2.tar.gz system_core-b30769a87acc15fc7f628d8541cdf97aba22e2e2.tar.bz2 system_core-b30769a87acc15fc7f628d8541cdf97aba22e2e2.zip |
Implement android::base::WaitForProperty.
Also adapt libcutils to the bionic change that was necessary for this.
Bug: http://b/35201172
Test: ran tests
Change-Id: I72a98b70b03d23e958b46778b505fbd5c86c32ae
Diffstat (limited to 'base/include/android-base/properties.h')
-rw-r--r-- | base/include/android-base/properties.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/include/android-base/properties.h b/base/include/android-base/properties.h index 4d7082a21..e275fa2a4 100644 --- a/base/include/android-base/properties.h +++ b/base/include/android-base/properties.h @@ -58,6 +58,9 @@ template <typename T> T GetUintProperty(const std::string& key, // tell you whether or not your call succeeded. A `false` return value definitely means failure. bool SetProperty(const std::string& key, const std::string& value); +// Waits for the system property `key` to have the value `expected_value`, . +void WaitForProperty(const std::string& key, const std::string& expected_value); + } // namespace base } // namespace android |