diff options
author | Neil Fuller <nfuller@google.com> | 2019-12-20 15:59:38 +0000 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2020-01-13 16:54:14 +0000 |
commit | 845146b012cd99d94402bfde1d26d8b676c15d1e (patch) | |
tree | fbe9f27f3b0d455a72ddfb5ed0efe01e8f17e740 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e57a8f338f5a3c3cce6b6899a61ee56495d7b934 (diff) |
Make NtpTrustedTime safer / expand docs
This commit makes a number of changes:
1) Documents / enforces thread safety, removes or deprecates unsafe
check-then-do methods / adds a way to get the NTP query result
atomically.
2) Delays configuration lookup until point of use: the config can change
due to various possible config overlays, e.g. MCC-based config.
(1) is because the threading model is currently unclear / possibly
unsafe - it looks like NtpTrustedTime is supposed to be single threaded
but it's also a singleton so could be accessed from multiple threads.
If NtpTrustedTime were not a singleton things might be easier but the
@UnsupportedAppUsage makes it difficult to change now.
(2) is to address the same issue as https://r.android.com/1182530,
contributed by Luca Stefani.
Bug: 140712361
Test: build only
Merged-In: Ie09da9db5d853b59829886a020de21a88da5dd51
Change-Id: Ie09da9db5d853b59829886a020de21a88da5dd51
(cherry picked from commit 65f0f31bdee65d1bbe76fcd14a13151a476a51ec)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions