summaryrefslogtreecommitdiff
path: root/linker/linker_block_allocator.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-02-10 18:13:46 -0800
committerElliott Hughes <enh@google.com>2017-02-13 13:30:10 -0800
commita0d374d587ec18d437d0dd15ba1332aceaa188af (patch)
treea9466c8841140cf70290c54d50354f245ea3a9db /linker/linker_block_allocator.cpp
parent132768084e24119c337e56fd110b97a23e5593c2 (diff)
Add __system_property_wait and return the serial in __system_property_read_callback.
In order to implement android::base::WaitForProperty well, we need a way to wait not for *any* property to change (__system_property_wait_any), but to specifically wait for the property represented by a given `prop_info` to change. The android::base::WaitForProperty implementation, like attempts to cache system properties in the past, also needs a way to keep serials and values in sync, but the existing functions don't provide a cheap way to get a consistent snapshot. Change the __system_property_read_callback callback's type to include the serial corresponding to the given value. Add a test, slightly clean up some of the existing tests (and name them to include the names of the functions they're testing, in our usual style). Bug: http://b/35201172 Test: ran tests Change-Id: Ibc8ebe2e88eef1e333a1bd3dd7f68135f1ba7fb5
Diffstat (limited to 'linker/linker_block_allocator.cpp')
0 files changed, 0 insertions, 0 deletions