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:
parent
c76078e4b6
commit
ef2469e547
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue