base: fix out of date documentation with PropertySet()

As of Android-P, __system_property_set() is synchronous and only will
return '0' if the property was successfully set.

Test: n/a
Change-Id: Icbc0a6d8be1ae683565f378c534ea8e5c5f25357
This commit is contained in:
Tom Cherry 2019-06-05 10:27:41 -07:00
parent c76078e4b6
commit ef2469e547
1 changed files with 0 additions and 3 deletions

View File

@ -49,9 +49,6 @@ template <typename T> T GetUintProperty(const std::string& key,
T max = std::numeric_limits<T>::max());
// Sets the system property `key` to `value`.
// Note that system property setting is inherently asynchronous so a return value of `true`
// isn't particularly meaningful, and immediately reading back the value won't necessarily
// 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`.